]> Git Repo - uclibc-ng.git/commitdiff
ether_line: fix build for socket && !ip
authorBernhard Reutner-Fischer <[email protected]>
Tue, 19 Jan 2010 16:21:52 +0000 (17:21 +0100)
committerCarmelo Amoroso <[email protected]>
Thu, 21 Jan 2010 11:43:41 +0000 (12:43 +0100)
The internal __ether_line helper needs ether_ntoa_r()

Signed-off-by: Bernhard Reutner-Fischer <[email protected]>
(cherry picked from commit 81264e8097b705f3b2a7e29be0a1a2ea853230cb)

Signed-off-by: Carmelo Amoroso <[email protected]>
include/netinet/ether.h
libc/inet/Makefile.in

index c850e3e4f8bd1ed820cd006a9e903cdd199a98e8..2e52679fa7dd58d6fe14d8d233e3b72af5b60d29 100644 (file)
@@ -31,7 +31,8 @@
 
 __BEGIN_DECLS
 
-#if defined __UCLIBC_HAS_IPV4__ || defined __UCLIBC_HAS_IPV6__
+#if defined __UCLIBC_HAS_SOCKET__ || defined __UCLIBC_HAS_IPV4__ || \
+       defined __UCLIBC_HAS_IPV6__
 /* Convert 48 bit Ethernet ADDRess to ASCII.  */
 extern char *ether_ntoa (__const struct ether_addr *__addr) __THROW;
 extern char *ether_ntoa_r (__const struct ether_addr *__addr, char *__buf)
@@ -43,10 +44,8 @@ extern struct ether_addr *ether_aton (__const char *__asc) __THROW;
 extern struct ether_addr *ether_aton_r (__const char *__asc,
                                        struct ether_addr *__addr) __THROW;
 libc_hidden_proto(ether_aton_r)
-#endif
 
-#if defined __UCLIBC_HAS_SOCKET__ || defined __UCLIBC_HAS_IPV4__ || \
-       defined __UCLIBC_HAS_IPV6__
+
 /* Map 48 bit Ethernet number ADDR to HOSTNAME.  */
 extern int ether_ntohost (char *__hostname, __const struct ether_addr *__addr)
      __THROW;
index 23e8732b227e9560267ccbd36c636a54c019c61c..81319452febf0c008dbb7d6a4dcba9ed0c6d5923 100644 (file)
@@ -20,7 +20,7 @@ endif
 ifneq ($(UCLIBC_HAS_IPV4)$(UCLIBC_HAS_IPV6),)
 CSRC +=        getservice.c getproto.c hostid.c getnetent.c getnetbynm.c getnetbyad.c \
        inet_net.c herror.c if_index.c gai_strerror.c getaddrinfo.c \
-       ether_addr.c ifaddrs.c ntop.c
+       ifaddrs.c ntop.c
 endif
 ifeq ($(UCLIBC_HAS_IPV6),y)
 CSRC += in6_addr.c
@@ -62,7 +62,7 @@ CSRC += $(socketcalls_CSRC) opensock.c
 endif
 
 ifneq ($(UCLIBC_HAS_SOCKET)$(UCLIBC_HAS_IPV4)$(UCLIBC_HAS_IPV6),)
-CSRC += ethers.c
+CSRC += ethers.c ether_addr.c
 endif
 
 INET_SRC := $(patsubst %.c,$(INET_DIR)/%.c,$(CSRC))
This page took 0.038011 seconds and 4 git commands to generate.