changeset 451:f1446ed50512

fix build on linux...
author Louis Opter <kalessin@kalessin.fr>
date Wed, 04 May 2016 22:29:55 -0700
parents 2440677b8871
children 4cc421ea1213
files fix_freebsd_build.patch
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/fix_freebsd_build.patch	Wed May 04 15:14:23 2016 -0700
+++ b/fix_freebsd_build.patch	Wed May 04 22:29:55 2016 -0700
@@ -1,5 +1,5 @@
 # HG changeset patch
-# Parent  0c7aec226bf65211a21118fc5092ac9ab96a8f4d
+# Parent  631ea4f01b043da184393acd8cd055619e8eaa1f
 Fix build on FreeBSD 10.3
 
 - properly use _XOPEN_SOURCE=700 instead of _POSIX_C_SOURCE;
@@ -14,7 +14,7 @@
  SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wextra -Wall -Wstrict-prototypes -std=c99")
  SET(CMAKE_C_FLAGS_${CMAKE_BUILD_TYPE} "")
  
-+IF (LINUX)
++IF (CMAKE_SYSTEM_NAME MATCHES "Linux")
 +    ADD_DEFINITIONS(
 +        # see feature_test_macros(7)
 +        "-D_XOPEN_SOURCE=700"