OSDN Git Service

Silence stupid warnings caused by bad kernel network includes
authorEric Andersen <andersen@codepoet.org>
Thu, 27 Sep 2001 06:31:38 +0000 (06:31 -0000)
committerEric Andersen <andersen@codepoet.org>
Thu, 27 Sep 2001 06:31:38 +0000 (06:31 -0000)
libc/inet/getnetbyad.c
libc/inet/getnetbynm.c
libc/inet/herror.c
libc/inet/rpc/rpc_commondata.c

index 38fe03c..64ca24a 100644 (file)
@@ -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;
index 8d60964..a800fe8 100644 (file)
@@ -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>
 
index e24d93b..7ccf51e 100644 (file)
@@ -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>
index 39648d2..2864703 100644 (file)
@@ -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