summaryrefslogtreecommitdiff
path: root/devel/libosip/patches
diff options
context:
space:
mode:
authorkristerw <kristerw>2004-07-18 20:28:23 +0000
committerkristerw <kristerw>2004-07-18 20:28:23 +0000
commita0aacee11ce169c78e1288af8f88bb74d70da44f (patch)
tree8d89ec89081d62b97ae6507390bebe30a8c05746 /devel/libosip/patches
parentd9fe490cdfa87a1ec7beaf78e23862000a242573 (diff)
downloadpkgsrc-a0aacee11ce169c78e1288af8f88bb74d70da44f.tar.gz
Fix the calls to semctl to make this package build on NetBSD 1.6.
Diffstat (limited to 'devel/libosip/patches')
-rw-r--r--devel/libosip/patches/patch-aa36
1 files changed, 36 insertions, 0 deletions
diff --git a/devel/libosip/patches/patch-aa b/devel/libosip/patches/patch-aa
new file mode 100644
index 00000000000..416610de814
--- /dev/null
+++ b/devel/libosip/patches/patch-aa
@@ -0,0 +1,36 @@
+$NetBSD: patch-aa,v 1.1 2004/07/18 20:28:23 kristerw Exp $
+
+--- src/osip2/port_sema.c.orig Sun Jul 18 21:08:34 2004
++++ src/osip2/port_sema.c Sun Jul 18 21:09:32 2004
+@@ -133,7 +133,6 @@
+ struct osip_sem *
+ osip_sem_init (unsigned int value)
+ {
+- union semun val;
+ int i;
+ osip_sem_t *sem = (osip_sem_t *) osip_malloc (sizeof (osip_sem_t));
+
+@@ -144,8 +143,7 @@
+ osip_free (sem);
+ return NULL;
+ }
+- val.val = (int) value;
+- i = semctl (sem->semid, 0, SETVAL, val);
++ i = semctl (sem->semid, 0, SETVAL, value);
+ if (i != 0)
+ {
+ perror ("semctl error");
+@@ -158,12 +156,10 @@
+ int
+ osip_sem_destroy (struct osip_sem *_sem)
+ {
+- union semun val;
+ osip_sem_t *sem = (osip_sem_t *) _sem;
+ if (sem == NULL)
+ return 0;
+- val.val = 0;
+- semctl (sem->semid, 0, IPC_RMID, val);
++ semctl (sem->semid, 0, IPC_RMID, 0);
+ osip_free (sem);
+ return 0;
+ }