summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0803797)
raw | patch | inline | side by side (parent: 0803797)
author | octo <octo> | |
Thu, 2 Feb 2006 07:17:32 +0000 (07:17 +0000) | ||
committer | octo <octo> | |
Thu, 2 Feb 2006 07:17:32 +0000 (07:17 +0000) |
src/network.c | patch | blob | history |
diff --git a/src/network.c b/src/network.c
index 5f9aa7419c5ab8127002a3783d161361499150bb..cf0a0a38753962fa2212a0db15622f8e15ebc2f1 100644 (file)
--- a/src/network.c
+++ b/src/network.c
socklist_tail = socklist_tail->next;
memset (&ai_hints, '\0', sizeof (ai_hints));
- ai_hints.ai_flags = AI_PASSIVE | AI_ADDRCONFIG;
+ ai_hints.ai_flags = 0;
+#ifdef AI_PASSIVE
+ ai_hints.ai_flags |= AI_PASSIVE;
+#endif
+#ifdef AI_ADDRCONFIG
+ ai_hints.ai_flags |= AI_ADDRCONFIG;
+#endif
ai_hints.ai_family = PF_UNSPEC;
ai_hints.ai_socktype = SOCK_DGRAM;
ai_hints.ai_protocol = IPPROTO_UDP;