From 289942b6259670fe3dcfaffdd0135c27f14c61c0 Mon Sep 17 00:00:00 2001 From: Patrick TJ McPhee Date: Wed, 12 Dec 2012 10:49:12 -0500 Subject: [PATCH] Define _XOPEN_SOURCE appropriately on NetBSD. --- deps/hiredis/fmacros.h | 2 +- src/fmacros.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/hiredis/fmacros.h b/deps/hiredis/fmacros.h index 21cd9cfee..96324eb49 100644 --- a/deps/hiredis/fmacros.h +++ b/deps/hiredis/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 diff --git a/src/fmacros.h b/src/fmacros.h index 6f3c4b4e8..a6cf3578c 100644 --- a/src/fmacros.h +++ b/src/fmacros.h @@ -36,7 +36,7 @@ #define _GNU_SOURCE #endif -#if defined(__linux__) || defined(__OpenBSD__) +#if defined(__linux__) || defined(__OpenBSD__) || defined(__NetBSD__) #define _XOPEN_SOURCE 700 #else #define _XOPEN_SOURCE