]> Git Repo - uclibc-ng.git/commitdiff
- ethers only make sense if we want to play with ethernet addresses
authorBernhard Reutner-Fischer <[email protected]>
Mon, 29 Dec 2008 14:09:28 +0000 (14:09 -0000)
committerBernhard Reutner-Fischer <[email protected]>
Mon, 29 Dec 2008 14:09:28 +0000 (14:09 -0000)
  as in /etc/ethers (man 5 ethers)
  Assume that any of socket- or IP support indicate that need.

libc/inet/Makefile.in

index b15f49e5fc957999c150d3386009ef379d07ee7c..dd17633ef74ff9e02c7bb20cb0ee243820c9a33c 100644 (file)
@@ -35,18 +35,16 @@ endif
 # multi source resolv.c
 resolv_CSRC += \
        encodeh.c decodeh.c encoded.c decoded.c lengthd.c \
-       encodeq.c decodeq.c lengthq.c encodea.c decodea.c \
+       encodeq.c decodeq.c encodea.c decodea.c lengthq.c \
        dnslookup.c opennameservers.c closenameservers.c \
        read_etc_hosts_r.c get_hosts_byaddr_r.c get_hosts_byname_r.c \
        getnameinfo.c \
        gethostbyaddr_r.c gethostbyname_r.c gethostbyname2_r.c gethostent_r.c \
        gethostbyaddr.c gethostbyname.c gethostbyname2.c gethostent.c \
-       res_init.c res_query.c res_comp.c ns_name.c \
-       ethers.c
-#FIXME! ethers.c is a separate file, not a part of resolv.c - !?
+       res_init.c res_query.c res_comp.c ns_name.c
+
 ifneq ($(UCLIBC_HAS_IPV4)$(UCLIBC_HAS_IPV6),)
 CSRC += $(resolv_CSRC)
-
 ## # unused ATM
 ## CSRC += encodep.c decodep.c formquery.c
 endif
@@ -61,6 +59,10 @@ ifeq ($(UCLIBC_HAS_SOCKET),y)
 CSRC += $(socketcalls_CSRC) opensock.c
 endif
 
+ifneq ($(UCLIBC_HAS_SOCKET)$(UCLIBC_HAS_IPV4)$(UCLIBC_HAS_IPV6),)
+CSRC += ethers.c
+endif
+
 INET_SRC := $(patsubst %.c,$(INET_DIR)/%.c,$(CSRC))
 INET_OBJ := $(patsubst %.c,$(INET_OUT)/%.o,$(CSRC))
 
This page took 0.028609 seconds and 4 git commands to generate.