Skip to content
Permalink
Browse files

cmake : O_DIRECTORY flag is not available with X/Open set to 600.

  • Loading branch information...
dcarlier-afilias authored and Snaipe committed May 10, 2018
1 parent 481cad1 commit 4bac60bf13a49eadb76f55343164cbe8199b8d66
Showing with 1 addition and 1 deletion.
  1. +1 −1 CMakeLists.txt
@@ -104,7 +104,7 @@ set (BXF_EXE_FORMAT elf)
set (BXF_OS_FAMILY posix)

if (CMAKE_SYSTEM_NAME MATCHES "(Linux|(Free|Net|Open)?BSD|Solaris|SunOS)")
add_definitions(-D_XOPEN_SOURCE=600 -D_GNU_SOURCE)
add_definitions(-D_DEFAULT_SOURCE -D_GNU_SOURCE)
elseif (CMAKE_SYSTEM_NAME MATCHES "Darwin")
set (BXF_EXE_FORMAT mach-o)
set (BXF_MANGLING "leading-underscore")

0 comments on commit 4bac60b

Please sign in to comment.
You can’t perform that action at this time.