summaryrefslogtreecommitdiff
path: root/net/openntpd/files/patch-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/openntpd/files/patch-config.c')
-rw-r--r--net/openntpd/files/patch-config.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/net/openntpd/files/patch-config.c b/net/openntpd/files/patch-config.c
new file mode 100644
index 000000000000..db63ae348861
--- /dev/null
+++ b/net/openntpd/files/patch-config.c
@@ -0,0 +1,17 @@
+
+$FreeBSD$
+
+--- config.c.orig Fri Aug 20 13:43:20 2004
++++ config.c Sat Sep 4 04:04:38 2004
+@@ -133,7 +133,11 @@
+ if (error) {
+ log_warnx("could not parse \"%s\": %s", s,
+ gai_strerror(error));
++#ifdef EAI_NODATA
+ if (error == EAI_AGAIN || error == EAI_NODATA)
++#else
++ if (error == EAI_AGAIN)
++#endif
+ return (0);
+ else
+ return (-1);