Define _XOPEN_SOURCE for NetBSD

This is backported from
289942b625
This commit is contained in:
Patrick TJ McPhee 2014-04-08 21:11:14 -04:00 committed by Matt Stancliff
parent 4ede1bada1
commit 4441fa3513

View File

@ -7,7 +7,7 @@
#if defined(__sun__) #if defined(__sun__)
#define _POSIX_C_SOURCE 200112L #define _POSIX_C_SOURCE 200112L
#elif defined(__linux__) #elif defined(__linux__) || defined(__OpenBSD__) || defined(__NetBSD__)
#define _XOPEN_SOURCE 600 #define _XOPEN_SOURCE 600
#else #else
#define _XOPEN_SOURCE #define _XOPEN_SOURCE