From c5b68a9df55b58bdd433ea04189996bf5198e90d Mon Sep 17 00:00:00 2001
From: Peter S. Mazinger <ps.m@gmx.net>
Date: Mon, 14 Mar 2011 17:45:43 +0100
Subject: [PATCH 051/396] 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>
---
 libpthread/linuxthreads.old/semaphore.c |    1 +
 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 c892a60..0811e17 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 392c37b..b66735b 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"
-- 
1.7.0.4

