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.
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@72733
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
# 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) */