Browse Source

Removed include/ifaddrs.h and put contents in libc/inet/ifaddrs.h, as we do not
need the file outside of uClibc anyway.

Ricard Wanderlof 16 years ago
parent
commit
0546f7ccc6
3 changed files with 16 additions and 20 deletions
  1. 0 19
      include/ifaddrs.h
  2. 1 1
      libc/inet/getaddrinfo.c
  3. 15 0
      libc/inet/ifaddrs.h

+ 0 - 19
include/ifaddrs.h

@@ -1,19 +0,0 @@
-#ifndef _IFADDRS_H
-#include <libc/inet/ifaddrs.h>
-#include <stdbool.h>
-#include <stdint.h>
-
-struct in6addrinfo
-{
-  enum {
-    in6ai_deprecated = 1,
-    in6ai_temporary = 2,
-    in6ai_homeaddress = 4
-  } flags;
-  uint32_t addr[4];
-};
-
-extern void __check_pf (bool *seen_ipv4, bool *seen_ipv6)
-  attribute_hidden;
-
-#endif	/* ifaddrs.h */

+ 1 - 1
libc/inet/getaddrinfo.c

@@ -66,7 +66,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #include <sys/un.h>
 #include <sys/utsname.h>
 #include <net/if.h>
-#include <ifaddrs.h>
+#include "ifaddrs.h"
 
 /* Experimentally off - libc_hidden_proto(memcpy) */
 /* Experimentally off - libc_hidden_proto(memset) */

+ 15 - 0
libc/inet/ifaddrs.h

@@ -22,6 +22,8 @@
 
 #include <features.h>
 #include <sys/socket.h>
+#include <stdbool.h>
+#include <stdint.h>
 
 __BEGIN_DECLS
 
@@ -71,4 +73,17 @@ extern void freeifaddrs (struct ifaddrs *__ifa)  __THROW;
 
 __END_DECLS
 
+struct in6addrinfo
+{
+  enum {
+    in6ai_deprecated = 1,
+    in6ai_temporary = 2,
+    in6ai_homeaddress = 4
+  } flags;
+  uint32_t addr[4];
+};
+
+extern void __check_pf (bool *seen_ipv4, bool *seen_ipv6)
+  attribute_hidden;
+
 #endif /* ifaddrs.h */