]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
Revert "modified hloeung's glibc test"
authorHaw Loeung <haw.loeung@canonical.com>
Fri, 15 Aug 2014 23:32:34 +0000 (09:32 +1000)
committerHaw Loeung <haw.loeung@canonical.com>
Fri, 15 Aug 2014 23:32:34 +0000 (09:32 +1000)
This reverts commit ff22833854960be90648666e7fab22b6f9bdd616.

dns.c

diff --git a/dns.c b/dns.c
index c5c3c1af70790fd7af4ae91423acd82253ad79a3..488b62765b0047feb706484ae36875db9cb95b24 100644 (file)
--- a/dns.c
+++ b/dns.c
 #include "net.h"
 
 #ifdef ENABLE_IPV6
-
-// hloeung suggested testing for glibc here. 
-//
-// Testing: The "touching" of the internals of "myres" was not-portable
-// anyway. Apparently the implementation of res_init and family is very
-// consistent, so that it usually works. Lets hope this also goes for the
-// IPV6 fields.  -- REW
-//#ifdef __GLIBC__
+#ifdef __GLIBC__
 #define NSCOUNT (myres.nscount + myres._u._ext.nscount6)
 #define NSCOUNT6 myres._u._ext.nscount6
 #define NSSOCKADDR6(i) (myres._u._ext.nsaddrs[i])
-//#else
-//#define NSCOUNT myres.nscount
-//#define NSCOUNT6 myres.nscount
-//#define NSSOCKADDR6(i) (&(myres._u._ext.ext->nsaddrs[i].sin6))
-//#endif
+#else
+#define NSCOUNT myres.nscount
+#define NSCOUNT6 myres.nscount
+#define NSSOCKADDR6(i) (&(myres._u._ext.ext->nsaddrs[i].sin6))
+#endif
 #endif