Browse Source

libc/inet: set path to resolver file via CPP

No objcode changes.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer 14 years ago
parent
commit
8df555e6f7

+ 1 - 0
libc/inet/Makefile.in

@@ -12,6 +12,7 @@ include $(top_srcdir)libc/inet/rpc/Makefile.in
 INET_DIR := $(top_srcdir)libc/inet
 INET_OUT := $(top_builddir)libc/inet
 
+CFLAGS-inet := -DRESOLVER="\"resolv.c\""
 CSRC-y :=
 # des uses ntohl
 CSRC-$(findstring y,$(UCLIBC_HAS_CRYPT_IMPL)$(UCLIBC_HAS_IPV4)$(UCLIBC_HAS_IPV6)) += ntohl.c

+ 1 - 1
libc/inet/_res_state.c

@@ -5,4 +5,4 @@
  */
 
 #define L_res_state
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/closenameservers.c

@@ -5,4 +5,4 @@
  */
 
 #define L_closenameservers
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/decodea.c

@@ -5,4 +5,4 @@
  */
 
 #define L_decodea
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/decoded.c

@@ -5,4 +5,4 @@
  */
 
 #define L_decoded
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/decodeh.c

@@ -5,4 +5,4 @@
  */
 
 #define L_decodeh
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/decodep.c

@@ -5,4 +5,4 @@
  */
 
 #define L_decodep
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/decodeq.c

@@ -5,4 +5,4 @@
  */
 
 #define L_decodeq
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/dnslookup.c

@@ -5,4 +5,4 @@
  */
 
 #define L_dnslookup
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/encodea.c

@@ -5,4 +5,4 @@
  */
 
 #define L_encodea
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/encoded.c

@@ -5,4 +5,4 @@
  */
 
 #define L_encoded
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/encodeh.c

@@ -5,4 +5,4 @@
  */
 
 #define L_encodeh
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/encodep.c

@@ -5,4 +5,4 @@
  */
 
 #define L_encodep
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/encodeq.c

@@ -5,4 +5,4 @@
  */
 
 #define L_encodeq
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/formquery.c

@@ -5,4 +5,4 @@
  */
 
 #define L_formquery
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/get_hosts_byaddr_r.c

@@ -5,4 +5,4 @@
  */
 
 #define L_get_hosts_byaddr_r
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/get_hosts_byname_r.c

@@ -5,4 +5,4 @@
  */
 
 #define L_get_hosts_byname_r
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/gethostbyaddr.c

@@ -5,4 +5,4 @@
  */
 
 #define L_gethostbyaddr
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/gethostbyaddr_r.c

@@ -5,4 +5,4 @@
  */
 
 #define L_gethostbyaddr_r
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/gethostbyname.c

@@ -5,4 +5,4 @@
  */
 
 #define L_gethostbyname
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/gethostbyname2.c

@@ -5,4 +5,4 @@
  */
 
 #define L_gethostbyname2
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/gethostbyname2_r.c

@@ -5,4 +5,4 @@
  */
 
 #define L_gethostbyname2_r
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/gethostbyname_r.c

@@ -5,4 +5,4 @@
  */
 
 #define L_gethostbyname_r
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/gethostent.c

@@ -5,4 +5,4 @@
  */
 
 #define L_gethostent
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/gethostent_r.c

@@ -5,4 +5,4 @@
  */
 
 #define L_gethostent_r
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/getnameinfo.c

@@ -5,4 +5,4 @@
  */
 
 #define L_getnameinfo
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/lengthd.c

@@ -5,4 +5,4 @@
  */
 
 #define L_lengthd
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/lengthq.c

@@ -5,4 +5,4 @@
  */
 
 #define L_lengthq
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/ns_name.c

@@ -5,4 +5,4 @@
  */
 
 #define L_ns_name
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/opennameservers.c

@@ -5,4 +5,4 @@
  */
 
 #define L_opennameservers
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/read_etc_hosts_r.c

@@ -5,4 +5,4 @@
  */
 
 #define L_read_etc_hosts_r
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/res_comp.c

@@ -5,4 +5,4 @@
  */
 
 #define L_res_comp
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/res_init.c

@@ -5,4 +5,4 @@
  */
 
 #define L_res_init
-#include "resolv.c"
+#include RESOLVER

+ 1 - 1
libc/inet/res_query.c

@@ -5,4 +5,4 @@
  */
 
 #define L_res_query
-#include "resolv.c"
+#include RESOLVER