summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-09-27 06:31:38 +0000
committerEric Andersen <andersen@codepoet.org>2001-09-27 06:31:38 +0000
commitecee0fee1e1a347f519b46b504d21a6c49288ead (patch)
tree88c2ae0455ee670307f3eab5affade45c7263a1d /libc
parent3beceefb6af09979b321359fa324be1d83b329a3 (diff)
Silence stupid warnings caused by bad kernel network includes
Diffstat (limited to 'libc')
-rw-r--r--libc/inet/getnetbyad.c2
-rw-r--r--libc/inet/getnetbynm.c2
-rw-r--r--libc/inet/herror.c2
-rw-r--r--libc/inet/rpc/rpc_commondata.c2
4 files changed, 8 insertions, 0 deletions
diff --git a/libc/inet/getnetbyad.c b/libc/inet/getnetbyad.c
index 38fe03cc6..64ca24abd 100644
--- a/libc/inet/getnetbyad.c
+++ b/libc/inet/getnetbyad.c
@@ -15,6 +15,8 @@
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
+#define __FORCE_GLIBC__
+#include <features.h>
#include <netdb.h>
extern int _net_stayopen;
diff --git a/libc/inet/getnetbynm.c b/libc/inet/getnetbynm.c
index 8d60964b0..a800fe845 100644
--- a/libc/inet/getnetbynm.c
+++ b/libc/inet/getnetbynm.c
@@ -15,6 +15,8 @@
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
+#define __FORCE_GLIBC__
+#include <features.h>
#include <netdb.h>
#include <string.h>
diff --git a/libc/inet/herror.c b/libc/inet/herror.c
index e24d93b3e..7ccf51e47 100644
--- a/libc/inet/herror.c
+++ b/libc/inet/herror.c
@@ -17,6 +17,8 @@
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
+#define __FORCE_GLIBC__
+#include <features.h>
#include <stdio.h>
#include <string.h>
#include <netdb.h>
diff --git a/libc/inet/rpc/rpc_commondata.c b/libc/inet/rpc/rpc_commondata.c
index 39648d284..28647031e 100644
--- a/libc/inet/rpc/rpc_commondata.c
+++ b/libc/inet/rpc/rpc_commondata.c
@@ -27,6 +27,8 @@
* 2550 Garcia Avenue
* Mountain View, California 94043
*/
+#define __FORCE_GLIBC__
+#include <features.h>
#include <rpc/rpc.h>
/*
* This file should only contain common data (global data) that is exported