diff options
author | kristerw <kristerw@pkgsrc.org> | 2004-07-18 20:28:23 +0000 |
---|---|---|
committer | kristerw <kristerw@pkgsrc.org> | 2004-07-18 20:28:23 +0000 |
commit | a62706f57cb543ba40b4b123b79cb62ac4f90ece (patch) | |
tree | 8d89ec89081d62b97ae6507390bebe30a8c05746 /devel/libosip | |
parent | dcfd5188266e986e6349f0af42e3e8baba1d4266 (diff) | |
download | pkgsrc-a62706f57cb543ba40b4b123b79cb62ac4f90ece.tar.gz |
Fix the calls to semctl to make this package build on NetBSD 1.6.
Diffstat (limited to 'devel/libosip')
-rw-r--r-- | devel/libosip/distinfo | 3 | ||||
-rw-r--r-- | devel/libosip/patches/patch-aa | 36 |
2 files changed, 38 insertions, 1 deletions
diff --git a/devel/libosip/distinfo b/devel/libosip/distinfo index a9efe23fb36..235af1215f5 100644 --- a/devel/libosip/distinfo +++ b/devel/libosip/distinfo @@ -1,4 +1,5 @@ -$NetBSD: distinfo,v 1.1.1.1 2004/07/16 01:30:47 xtraeme Exp $ +$NetBSD: distinfo,v 1.2 2004/07/18 20:28:23 kristerw Exp $ SHA1 (libosip2-2.0.9.tar.gz) = e2adb6475dc9a5ca966561e27f9851044158618c Size (libosip2-2.0.9.tar.gz) = 606839 bytes +SHA1 (patch-aa) = 9d4fed508ff2cfdaae87b175d575318dbd26ba42 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; + } |