diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2013-07-08 18:46:24 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2013-07-08 18:46:24 +0200 |
commit | 0c93149b449f74ec062a0d8a631ff24b8723f78c (patch) | |
tree | 7d9977f9012573c287c8433564410910ca371c02 /ConfigureChecks.cmake | |
parent | 7dd4b81050cdee81f2ac71673851e9c06bb4aa5f (diff) | |
download | socket_wrapper-0c93149b449f74ec062a0d8a631ff24b8723f78c.tar.gz socket_wrapper-0c93149b449f74ec062a0d8a631ff24b8723f78c.tar.xz socket_wrapper-0c93149b449f74ec062a0d8a631ff24b8723f78c.zip |
cmake: Try to fix compilation on FreeBSD.
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 0d906c5..be05685 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -167,6 +167,10 @@ if (OSX) set(HAVE_APPLE 1) endif (OSX) +if (BSD) + add_definitions(-D_XOPEN_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1) +endif (BSD) + # ENDIAN if (NOT WIN32) test_big_endian(WORDS_BIGENDIAN) |