From: Enlightenment S. <no-...@en...> - 2012-06-23 20:22:51
|
Log: From: Raphael Kubo da Costa <rakuco@FreeBSD.org> To: enl...@li... 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. Author: discomfitor Date: 2012-06-23 13:22:44 -0700 (Sat, 23 Jun 2012) New Revision: 72733 Trac: http://trac.enlightenment.org/e/changeset/72733 Modified: trunk/ecore/src/lib/ecore_con/dns.c Modified: trunk/ecore/src/lib/ecore_con/dns.c =================================================================== --- trunk/ecore/src/lib/ecore_con/dns.c 2012-06-23 18:39:08 UTC (rev 72732) +++ trunk/ecore/src/lib/ecore_con/dns.c 2012-06-23 20:22:44 UTC (rev 72733) @@ -27,6 +27,7 @@ # include "config.h" #endif +#if !defined(__FreeBSD__) #ifndef _XOPEN_SOURCE #define _XOPEN_SOURCE 600 #endif @@ -37,6 +38,10 @@ #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) */ |