diff options
author | hubertf <hubertf@pkgsrc.org> | 1999-04-05 02:00:49 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 1999-04-05 02:00:49 +0000 |
commit | e3b86d3b0163aa7ed18a1be12f5ef6ffda8eb324 (patch) | |
tree | 020c8b66c9398a611a40fa1138d833428473af19 /misc | |
parent | 3d7557d4c8375892e95fdf763f147c2cc8a69d86 (diff) | |
download | pkgsrc-e3b86d3b0163aa7ed18a1be12f5ef6ffda8eb324.tar.gz |
semctl(2) wants a union semun as 4th argument... make it so.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/buffer/patches/patch-ab | 18 |
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" ); + } |