summaryrefslogtreecommitdiff
path: root/misc/buffer
diff options
context:
space:
mode:
authorhubertf <hubertf>1999-04-05 02:00:49 +0000
committerhubertf <hubertf>1999-04-05 02:00:49 +0000
commit424dce32073bb434e858392cdeca57e140a7ef29 (patch)
tree020c8b66c9398a611a40fa1138d833428473af19 /misc/buffer
parent2763f530f310c5fed11fc67034ed7ab9ada88a98 (diff)
downloadpkgsrc-424dce32073bb434e858392cdeca57e140a7ef29.tar.gz
semctl(2) wants a union semun as 4th argument... make it so.
Diffstat (limited to 'misc/buffer')
-rw-r--r--misc/buffer/patches/patch-ab18
1 files changed, 18 insertions, 0 deletions
diff --git a/misc/buffer/patches/patch-ab b/misc/buffer/patches/patch-ab
new file mode 100644
index 00000000000..c10f674a4a8
--- /dev/null
+++ b/misc/buffer/patches/patch-ab
@@ -0,0 +1,18 @@
+$NetBSD: patch-ab,v 1.1 1999/04/05 02:00:49 hubertf Exp $
+
+--- sem.c.BAK Mon Apr 5 03:56:15 1999
++++ sem.c Mon Apr 5 03:57:04 1999
+@@ -148,10 +148,12 @@
+ remove_sems( sem_id )
+ int sem_id;
+ {
++ union semun dummy;
++
+ if( sem_id == -1 )
+ return;
+
+- if( semctl( sem_id, 0, IPC_RMID, NULL ) == -1 ){
++ if( semctl( sem_id, 0, IPC_RMID, dummy ) == -1 ){
+ report_proc();
+ perror( "internal error, failed to remove semaphore" );
+ }