summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2005-08-20 07:59:13 +0000
committerstefanf <stefanf@FreeBSD.org>2005-08-20 07:59:13 +0000
commitbca82361aaefb3fe4b561e305d15cd9cfc5c59ec (patch)
tree38c86566d0fd871ba78447f3cf5294b094fa2ccd /lib/libc
parent72d79d83572493047ec38aaa01c1babc4006ca57 (diff)
downloadFreeBSD-src-bca82361aaefb3fe4b561e305d15cd9cfc5c59ec.zip
FreeBSD-src-bca82361aaefb3fe4b561e305d15cd9cfc5c59ec.tar.gz
Include <sys/types.h> and <limits.h> ourselves, don't assume they are included
through <pthread.h>. gen/sem.c: Prerequisite for <_semaphore.h> net/getprotoent.c: USHRT_MAX net/getservent.c: USHRT_MAX stdio/ungetwc.c: MB_LEN_MAX stdio/vfwscanf.c: MB_LEN_MAX
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/sem.c1
-rw-r--r--lib/libc/net/getprotoent.c1
-rw-r--r--lib/libc/net/getservent.c1
-rw-r--r--lib/libc/stdio/ungetwc.c1
-rw-r--r--lib/libc/stdio/vfwscanf.c1
5 files changed, 5 insertions, 0 deletions
diff --git a/lib/libc/gen/sem.c b/lib/libc/gen/sem.c
index 64ba05b..37a7a8e 100644
--- a/lib/libc/gen/sem.c
+++ b/lib/libc/gen/sem.c
@@ -57,6 +57,7 @@
* sem_post() may need to be wrapped to be signal-safe.
*/
#include "namespace.h"
+#include <sys/types.h>
#include <sys/queue.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/lib/libc/net/getprotoent.c b/lib/libc/net/getprotoent.c
index 705ba42..a6c2be8 100644
--- a/lib/libc/net/getprotoent.c
+++ b/lib/libc/net/getprotoent.c
@@ -39,6 +39,7 @@ __FBSDID("$FreeBSD$");
#include <sys/types.h>
#include <sys/socket.h>
+#include <limits.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/lib/libc/net/getservent.c b/lib/libc/net/getservent.c
index e232e32..310bd78 100644
--- a/lib/libc/net/getservent.c
+++ b/lib/libc/net/getservent.c
@@ -40,6 +40,7 @@ __FBSDID("$FreeBSD$");
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
+#include <limits.h>
#include <netdb.h>
#include <stdio.h>
#include <string.h>
diff --git a/lib/libc/stdio/ungetwc.c b/lib/libc/stdio/ungetwc.c
index bae2c3e..510648b 100644
--- a/lib/libc/stdio/ungetwc.c
+++ b/lib/libc/stdio/ungetwc.c
@@ -29,6 +29,7 @@ __FBSDID("$FreeBSD$");
#include "namespace.h"
#include <errno.h>
+#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <wchar.h>
diff --git a/lib/libc/stdio/vfwscanf.c b/lib/libc/stdio/vfwscanf.c
index 6a9c9fa..327ec40 100644
--- a/lib/libc/stdio/vfwscanf.c
+++ b/lib/libc/stdio/vfwscanf.c
@@ -45,6 +45,7 @@ __FBSDID("$FreeBSD$");
#include "namespace.h"
#include <ctype.h>
#include <inttypes.h>
+#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
OpenPOWER on IntegriCloud