Ver Fonte

Silence stupid warnings caused by bad kernel network includes

Eric Andersen há 22 anos atrás
pai
commit
ecee0fee1e

+ 2 - 0
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;

+ 2 - 0
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>
 

+ 2 - 0
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>

+ 2 - 0
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