Browse Source

semaphore.c: include limits.h before semaphore.h

else SEM_VALUE_MAX will be undefined

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger 13 years ago
parent
commit
d70e284a0d
2 changed files with 2 additions and 0 deletions
  1. 1 0
      libpthread/linuxthreads.old/semaphore.c
  2. 1 0
      libpthread/linuxthreads/semaphore.c

+ 1 - 0
libpthread/linuxthreads.old/semaphore.c

@@ -15,6 +15,7 @@
 /* Semaphores a la POSIX 1003.1b */
 
 #include <features.h>
+#include <limits.h>
 #include <errno.h>
 #include "pthread.h"
 #include "semaphore.h"

+ 1 - 0
libpthread/linuxthreads/semaphore.c

@@ -15,6 +15,7 @@
 /* Semaphores a la POSIX 1003.1b */
 
 #include <errno.h>
+#include <limits.h>
 #include "pthread.h"
 #include "semaphore.h"
 #include "internals.h"