1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/misc/buffer/files/patch-sem.c
Mario Sergio Fujikawa Ferreira fae54139e3 o Update to 1.19
o Add several patches from Gentoo portage CVS

Approved by:	maintainer (thanks jonny)
Obtained from:	Gentoo portage CVS
2005-12-13 17:33:18 +00:00

20 lines
347 B
C

--- sem.c.orig Tue Dec 13 00:33:03 2005
+++ sem.c Tue Dec 13 00:35:22 2005
@@ -27,6 +27,7 @@
* semaphores */
#include <stdio.h>
+#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ipc.h>
@@ -95,7 +96,7 @@
return sem;
}
-static
+static void
do_sem( sem_id, pbuf, err )
int sem_id;
struct sembuf *pbuf;