From 34bfb70946ac7d89628443bb91f776be930525f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Thu, 12 Jul 2012 13:39:31 +0200 Subject: [PATCH] libports: add needed files to libc-net --- libports/lib/mk/libc-net.mk | 15 ++++++++++----- libports/ports/libc.mk | 4 +++- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/libports/lib/mk/libc-net.mk b/libports/lib/mk/libc-net.mk index 9c0ca9587..5d0e1cea6 100644 --- a/libports/lib/mk/libc-net.mk +++ b/libports/lib/mk/libc-net.mk @@ -4,11 +4,10 @@ LIBC_NET_DIR = $(LIBC_DIR)/libc/net SRC_C = getservent.c nsdispatch.c nsparser.c nslexer.c # needed for getaddrinfo() -#SRC_C += getaddrinfo.c +SRC_C += getaddrinfo.c -# getaddrinfo() includes parts of rpc/ which in return includes -# even more stuff from the rpc framework. For now the effort for -# getting this right is too much. +# needed for getnameinfo() +SRC_C += getnameinfo.c name6.c # needed for gethostbyname() SRC_C += gethostnamadr.c gethostbydns.c gethostbyht.c map_v4v6.c @@ -22,8 +21,14 @@ SRC_C += vars.c # b64_ntop SRC_C += base64.c -INC_DIR += $(REP_DIR)/include/libc/sys +SRC_C += rcmd.c rcmdsh.c include $(REP_DIR)/lib/mk/libc-common.inc +INC_DIR += $(REP_DIR)/include/libc +INC_DIR += $(REP_DIR)/include/libc/sys + +# needed for name6.c, contains res_private.h +INC_DIR += $(LIBC_DIR)/libc/resolv + vpath %.c $(LIBC_NET_DIR) diff --git a/libports/ports/libc.mk b/libports/ports/libc.mk index 986e70ebd..9485417d6 100644 --- a/libports/ports/libc.mk +++ b/libports/ports/libc.mk @@ -182,7 +182,9 @@ LIBC_IMPORT_INCLUDES += include/libc/vm/vm_param.h \ # # Files coming from the sys/net directories # -LIBC_IMPORT_INCLUDES += include/libc/net/if.h +LIBC_IMPORT_INCLUDES += include/libc/net/if.h \ + include/libc/net/if_dl.h \ + include/libc/net/if_types.h # # Files coming from the sys/netinet and sys/netinet6 directories