From b5016f3a7fe95942fd9234ce0e632bc4d78a3c75 Mon Sep 17 00:00:00 2001 From: Sebastien Lorquet Date: Fri, 17 Jul 2015 09:43:28 -0600 Subject: [PATCH] gethostbyname() and gethostbyname_r() should be built even if there is no host file support. From Sebastien Lorquet --- libc/netdb/Make.defs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libc/netdb/Make.defs b/libc/netdb/Make.defs index ada616983d..ca3fa715f4 100644 --- a/libc/netdb/Make.defs +++ b/libc/netdb/Make.defs @@ -37,21 +37,18 @@ ifeq ($(CONFIG_LIBC_NETDB),y) # Add the netdb C files to the build -CSRCS += lib_netdb.c +CSRCS += lib_netdb.c lib_gethostbyname.c lib_gethostbynamer.c # Add host file support ifeq ($(CONFIG_NETDB_HOSTFILE),y) -CSRCS += lib_gethostbyname.c lib_gethostbynamer.c lib_gethostbyaddr.c +CSRCS += lib_gethostbyaddr.c CSRCS += lib_gethostbyaddrr.c lib_parsehostfile.c endif # Add DNS lookup support ifeq ($(CONFIG_NETDB_DNSCLIENT),y) -ifneq ($(CONFIG_NETDB_HOSTFILE),y) -CSRCS += lib_gethostbyname.c lib_gethostbynamer.c -endif CSRCS += lib_dnsclient.c endif