Add _POSIX_C_SOURCE Macro

This commit is contained in:
Thomas A 2023-11-01 11:14:50 -07:00
parent 0dd868f684
commit 16eff803da

View File

@ -3,7 +3,7 @@ project(xpc)
cmake_minimum_required(VERSION 3.12)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse -msse2 -msse3 -nostdinc -fblocks -fvisibility=hidden")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__DARWIN_UNIX03 -fPIC")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__DARWIN_UNIX03 -fPIC -U_POSIX_C_SOURCE")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -nostdlib")
include_directories(