Skip to content

Commit

Permalink
Define _XOPEN_SOURCE appropriately on NetBSD.
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick TJ McPhee committed Dec 12, 2012
1 parent bf0852e commit 289942b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deps/hiredis/fmacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/fmacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 289942b

Please sign in to comment.