From: Raphael Kubo da Costa <rakuco@FreeBSD.org>
authorRaphael Kubo da Costa <rakuco@FreeBSD.org>
Sat, 23 Jun 2012 20:22:44 +0000 (20:22 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Sat, 23 Jun 2012 20:22:44 +0000 (20:22 +0000)
To: enlightenment-devel@lists.sourceforge.net
Subject: [E-devel] [PATCH] Import upstream commit to dns.c to fix the build on some BSDs
Date: Sat, 23 Jun 2012 16:04:56 -0300

Hi there,

The attached patch includes upstream commit
bae230201ace92141a1f43f655013f4ee22cd45a to dns.c, which should fix the
build for both FreeBSD (where _XOPEN_SOURCE should not need to be
tweaked) and NetBSD.

SVN revision: 72733

legacy/ecore/src/lib/ecore_con/dns.c

index 2413b0c..b92a315 100644 (file)
@@ -27,6 +27,7 @@
 # include "config.h"
 #endif
 
+#if !defined(__FreeBSD__)
 #ifndef _XOPEN_SOURCE
 #define _XOPEN_SOURCE  600
 #endif
 #undef _DARWIN_C_SOURCE
 #define _DARWIN_C_SOURCE
 
+#undef _NETBSD_SOURCE
+#define _NETBSD_SOURCE
+#endif
+
 #include <stddef.h>            /* offsetof() */
 #include <stdint.h>            /* uint32_t */
 #include <stdlib.h>            /* malloc(3) realloc(3) free(3) rand(3) random(3) arc4random(3) */