lists.arthurdejong.org
RSS feed

cvsd commit: MODIFIED: . ...

[Date Prev][Date Next] [Thread Prev][Thread Next]

cvsd commit: MODIFIED: . ...



User: arthur
Date: 11/10/04 21:30:42

Modified:    . cfg.c
Log:
portability improvement by Eric Schnoebelen


Revision  Changes    Path
1.9       +4 -3      cvsd/cfg.c

Index: cfg.c
===================================================================
RCS file: /home/arthur/devel/repos/cvsd/cfg.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- cfg.c       29 Aug 2010 13:29:22 -0000      1.8
+++ cfg.c       4 Oct 2011 19:30:41 -0000       1.9
@@ -122,7 +122,10 @@
 
   /* create the name for the socket */
   memset(&hints,0,sizeof(struct addrinfo));
-  hints.ai_flags=AI_PASSIVE|AI_ADDRCONFIG;
+  hints.ai_flags=AI_PASSIVE;
+#ifdef AI_ADDRCONFIG
+  hints.ai_flags|=AI_ADDRCONFIG;
+#endif
   hints.ai_family=PF_UNSPEC;
   hints.ai_socktype=SOCK_STREAM;
   switch (i=getaddrinfo(node,service,&hints,&(addr->addrs)))
@@ -158,5 +161,3 @@
     tmp->next=addr;
   }
 }
-
-


-- 
To unsubscribe send an email to
cvsd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/cvsd-commits/