From: Raphael Kubo da Costa <rakuco@FreeBSD.org>

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
This commit is contained in:
Raphael Kubo da Costa 2012-06-23 20:22:44 +00:00 committed by Mike Blumenkrantz
parent 1f2939fef0
commit d8ed77c892
1 changed files with 5 additions and 0 deletions

View File

@ -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) */