]> git.mxchange.org Git - simgear.git/commitdiff
udns: fix self baked inet_pton
authorTorsten Dreyer <torsten@t3r.de>
Tue, 3 May 2016 07:43:56 +0000 (09:43 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 13 Aug 2016 08:21:16 +0000 (10:21 +0200)
3rdparty/udns/CMakeLists.txt
3rdparty/udns/udns_XtoX.c

index e4ca6d2f409aa4148531ec03250a1ca088fc8d28..e4f14cbf88721e672f3a98d13295a46824007b81 100644 (file)
@@ -12,7 +12,6 @@ CHECK_SYMBOL_EXISTS(AF_INET6 "netinet/in.h" HAVE_IPv6)
 # somehow it is not, if somebody know a better way to define WINDOWS, please fix
 check_include_file(windows.h  WINDOWS)
 
-
 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_BINARY_DIR}/config.h)
 include_directories(${CMAKE_BINARY_DIR})
 
@@ -20,23 +19,23 @@ set(HEADERS
 )
 
 set(SOURCES
-       udns_resolver.c
-       udns_dn.c 
-       udns_dntosp.c 
-       udns_parse.c 
-       udns_resolver.c 
-       udns_init.c
-    udns_misc.c 
-       udns_XtoX.c
-    udns_rr_a.c 
-       udns_rr_ptr.c 
-       udns_rr_mx.c 
-       udns_rr_txt.c 
-       udns_bl.c
-    udns_rr_srv.c 
-       udns_rr_naptr.c 
-       udns_codes.c 
-       udns_jran.c
+    udns_resolver.c
+    udns_dn.c
+    udns_dntosp.c
+    udns_parse.c
+    udns_resolver.c
+    udns_init.c
+    udns_misc.c
+    udns_rr_a.c
+    udns_rr_ptr.c
+    udns_rr_mx.c
+    udns_rr_txt.c
+    udns_bl.c
+    udns_rr_srv.c
+    udns_rr_naptr.c
+    udns_codes.c
+    udns_jran.c
+    udns_XtoX.c
 )
 
 simgear_component(udns 3rdparty/udns "${SOURCES}" "${HEADERS}")
index 60e3fdfa3208822dc279cde9e72a2d62b1d60532..d68b6cec38630cf5d15f4e1585353ee20910675a 100644 (file)
@@ -43,8 +43,8 @@ int dns_pton(int af, const char *src, void *dst) {
 }
 
 #else
-
-#define inet_XtoX_prefix udns_
+#define inet_XtoX_no_ntop
+#define inet_XtoX_prefix dns_
 #include "inet_XtoX.c"
 
 #endif