summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d4b3646)
raw | patch | inline | side by side (parent: d4b3646)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 30 Jun 2007 15:01:04 +0000 (17:01 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 30 Jun 2007 15:01:04 +0000 (17:01 +0200) |
src/hddtemp.c | patch | blob | history | |
src/mbmon.c | patch | blob | history | |
src/ntpd.c | patch | blob | history |
diff --git a/src/hddtemp.c b/src/hddtemp.c
index d60481e35663313c34b05abd6c4aedabf82f652d..c77746589858cef0941934727d336c9b12ce9514 100644 (file)
--- a/src/hddtemp.c
+++ b/src/hddtemp.c
int ai_return;
memset (&ai_hints, '\0', sizeof (ai_hints));
- ai_hints.ai_flags = AI_ADDRCONFIG;
+ ai_hints.ai_flags = 0;
+#ifdef AI_ADDRCONFIG
+ ai_hints.ai_flags |= AI_ADDRCONFIG;
+#endif
ai_hints.ai_family = PF_UNSPEC;
ai_hints.ai_socktype = SOCK_STREAM;
ai_hints.ai_protocol = IPPROTO_TCP;
diff --git a/src/mbmon.c b/src/mbmon.c
index 68a0985044acdfeaf672b0107dbd94ae59ac88e9..7694abc5dd04e8e39b9ece4015dfece8d7e62195 100644 (file)
--- a/src/mbmon.c
+++ b/src/mbmon.c
int ai_return;
memset (&ai_hints, '\0', sizeof (ai_hints));
- ai_hints.ai_flags = AI_ADDRCONFIG;
+ ai_hints.ai_flags = 0;
+#ifdef AI_ADDRCONFIG
+ ai_hints.ai_flags |= AI_ADDRCONFIG;
+#endif
ai_hints.ai_family = PF_UNSPEC;
ai_hints.ai_socktype = SOCK_STREAM;
ai_hints.ai_protocol = IPPROTO_TCP;
diff --git a/src/ntpd.c b/src/ntpd.c
index 1c97e69ad721c834c93f41b8e6407a65e6d1f3cb..23daacdb801fc9c10f94d4a0b66dc22d045bc811 100644 (file)
--- a/src/ntpd.c
+++ b/src/ntpd.c
port = NTPD_DEFAULT_PORT;
memset (&ai_hints, '\0', sizeof (ai_hints));
- ai_hints.ai_flags = AI_ADDRCONFIG;
+ ai_hints.ai_flags = 0;
+#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;