OSDN Git Service

- remove some duplicate includes
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 30 Sep 2008 11:50:50 +0000 (11:50 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 30 Sep 2008 11:50:50 +0000 (11:50 -0000)
libc/misc/sysvipc/sem.c
libpthread/linuxthreads/sysdeps/mips/pspinlock.c

index 1caec5a..d7de5a3 100644 (file)
@@ -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);
 
index a106c0f..4d6617e 100644 (file)
@@ -23,8 +23,6 @@
 #include <sys/tas.h>
 #include "internals.h"
 
-#include <sgidefs.h>
-
 /* This implementation is similar to the one used in the Linux kernel.  */
 int
 __pthread_spin_lock (pthread_spinlock_t *lock)