From 4441fa3513e8b7bcd95d6b03dc56e0d538f264ca Mon Sep 17 00:00:00 2001 From: Patrick TJ McPhee Date: Tue, 8 Apr 2014 21:11:14 -0400 Subject: [PATCH] Define _XOPEN_SOURCE for NetBSD This is backported from https://github.com/antirez/redis/commit/289942b6259670fe3dcfaffdd0135c27f14c61c0 --- fmacros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fmacros.h b/fmacros.h index 799c12c..9e5fec0 100644 --- a/fmacros.h +++ b/fmacros.h @@ -7,7 +7,7 @@ #if defined(__sun__) #define _POSIX_C_SOURCE 200112L -#elif defined(__linux__) +#elif defined(__linux__) || defined(__OpenBSD__) || defined(__NetBSD__) #define _XOPEN_SOURCE 600 #else #define _XOPEN_SOURCE