From d49aa61690da70e32b6140b5b51258da5d3efc8e Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 8 Jul 2013 18:54:16 +0200 Subject: cmake: Try to fix compilation on Solaris. --- ConfigureChecks.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ConfigureChecks.cmake') diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index be05685..3596755 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -167,9 +167,9 @@ if (OSX) set(HAVE_APPLE 1) endif (OSX) -if (BSD) - add_definitions(-D_XOPEN_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1) -endif (BSD) +if (SOLARIS) + add_definitions(-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1) +endif (SOLARIS) # ENDIAN if (NOT WIN32) -- cgit