summaryrefslogtreecommitdiff
path: root/libc/misc/sysvipc
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-09-30 11:50:50 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-09-30 11:50:50 +0000
commit17de1ab3f64fc0de4f242f5960cd67e3fe1d6547 (patch)
tree054ee9dd3d0a755acb502a40e28808a48e0714d6 /libc/misc/sysvipc
parentbc762b6f1aacdcf388d02e8cbf4b672768dcb819 (diff)
- remove some duplicate includes
Diffstat (limited to 'libc/misc/sysvipc')
-rw-r--r--libc/misc/sysvipc/sem.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libc/misc/sysvipc/sem.c b/libc/misc/sysvipc/sem.c
index 1caec5a8c..d7de5a346 100644
--- a/libc/misc/sysvipc/sem.c
+++ b/libc/misc/sysvipc/sem.c
@@ -20,6 +20,8 @@
#include <errno.h>
#include <sys/sem.h>
#include <stddef.h>
+#include <stdlib.h> /* for NULL */
+
#include "ipc.h"
@@ -27,7 +29,6 @@
/* Return identifier for array of NSEMS semaphores associated with
KEY. */
#include <stdarg.h>
-#include <stdlib.h>
/* arg for semctl system calls. */
union semun {
int val; /* value for SETVAL */
@@ -61,9 +62,6 @@ int semctl(int semid, int semnum, int cmd, ...)
#endif
#ifdef L_semget
-/* for definition of NULL */
-#include <stdlib.h>
-
#ifdef __NR_semget
_syscall3(int, semget, key_t, key, int, nsems, int, semflg);