Browse Source

- remove some duplicate includes

Bernhard Reutner-Fischer 15 years ago
parent
commit
17de1ab3f6
2 changed files with 2 additions and 6 deletions
  1. 2 4
      libc/misc/sysvipc/sem.c
  2. 0 2
      libpthread/linuxthreads/sysdeps/mips/pspinlock.c

+ 2 - 4
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);
 

+ 0 - 2
libpthread/linuxthreads/sysdeps/mips/pspinlock.c

@@ -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)