summaryrefslogtreecommitdiff
path: root/devel/ocaml-sem/files/patch-sem_stubs.c
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-04-23 12:35:36 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-04-23 12:35:36 +0000
commita22f63ba68abf6248439980ceae5b861ae420f47 (patch)
tree42f69d124dbc329085b4557049a95c4fc15f05b0 /devel/ocaml-sem/files/patch-sem_stubs.c
parent- Fix plist: delete .bak files after REINPLACE_CMD so they don't get installed (diff)
OCaml library implementing an interface to FreeBSD's POSIX semaphores.
PR: ports/80108 Submitted by: Paul Argentoff <argentoff@gmail.com>
Notes
Notes: svn path=/head/; revision=133999
Diffstat (limited to 'devel/ocaml-sem/files/patch-sem_stubs.c')
-rw-r--r--devel/ocaml-sem/files/patch-sem_stubs.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/devel/ocaml-sem/files/patch-sem_stubs.c b/devel/ocaml-sem/files/patch-sem_stubs.c
new file mode 100644
index 000000000000..81bdba6bf7db
--- /dev/null
+++ b/devel/ocaml-sem/files/patch-sem_stubs.c
@@ -0,0 +1,18 @@
+--- sem_stubs.c.orig Tue Apr 19 16:20:34 2005
++++ sem_stubs.c Sat Apr 23 14:18:56 2005
+@@ -137,12 +137,14 @@
+ };
+
+ value stub_sem_getvalue(value sem) {
++ int * vp;
++
+ CAMLparam1(sem);
+ CAMLlocal2(estr, v);
+
+ estr = copy_string("");
+
+- int * vp = calloc(1, sizeof(int));
++ vp = calloc(1, sizeof(int));
+ if (sem_getvalue((sem_t *)sem,vp) == -1) {
+ uerror("sem_getvalue", estr);
+ };