[Asterisk-cvs] asterisk dns.c,1.2.2.2,1.2.2.3

markster at lists.digium.com markster at lists.digium.com
Thu Mar 4 00:46:42 CST 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv31907

Modified Files:
      Tag: v1-0_stable
	dns.c 
Log Message:
Look for linux intead of __Linux__


Index: dns.c
===================================================================
RCS file: /usr/cvsroot/asterisk/dns.c,v
retrieving revision 1.2.2.2
retrieving revision 1.2.2.3
diff -u -d -r1.2.2.2 -r1.2.2.3
--- dns.c	4 Mar 2004 05:30:20 -0000	1.2.2.2
+++ dns.c	4 Mar 2004 05:37:39 -0000	1.2.2.3
@@ -155,13 +155,13 @@
 				   const char *dname, int class, int type,
 				   int (*callback)(void *context, u_char *answer, int len, u_char *fullanswer))
 {
-#ifdef __Linux__
+#ifdef linux
 	struct __res_state dnsstate;
 #endif
 	char answer[MAX_SIZE];
 	int res, ret = -1;
 
-#ifdef __Linux__
+#ifdef linux
 	res_ninit(&dnsstate);
 	res = res_nsearch(&dnsstate, dname, class, type, answer, sizeof(answer));
 #else
@@ -180,7 +180,7 @@
 		else
 			ret = 1;
 	}
-#if defined(__Linux__)
+#if defined(linux)
 	res_nclose(&dnsstate);
 #else
 #ifndef __APPLE__




More information about the svn-commits mailing list