diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2011-03-14 17:45:43 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-06-15 14:00:24 +0200 |
commit | d70e284a0d5132f1f53c96b726fd9ce5962f143a (patch) | |
tree | 4c3bb849eedec1c8543c61dd4e7e7d4d3abd802b /libpthread | |
parent | 4424cb73da35671241e6f0b2f93f826e36d299f2 (diff) |
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>
Diffstat (limited to 'libpthread')
-rw-r--r-- | libpthread/linuxthreads.old/semaphore.c | 1 | ||||
-rw-r--r-- | libpthread/linuxthreads/semaphore.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/libpthread/linuxthreads.old/semaphore.c b/libpthread/linuxthreads.old/semaphore.c index c892a601b..0811e1707 100644 --- a/libpthread/linuxthreads.old/semaphore.c +++ b/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" diff --git a/libpthread/linuxthreads/semaphore.c b/libpthread/linuxthreads/semaphore.c index 392c37bfa..b66735bed 100644 --- a/libpthread/linuxthreads/semaphore.c +++ b/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" |