This is an automated email from the ASF dual-hosted git repository.

pengzheng pushed a commit to branch feature/579-automatic-dependency-deduction
in repository https://gitbox.apache.org/repos/asf/celix.git


The following commit(s) were added to 
refs/heads/feature/579-automatic-dependency-deduction by this push:
     new 9ced95bb Use POSIX extension.
9ced95bb is described below

commit 9ced95bb27c8d53ac909cf3a33dfb45adeedfb20
Author: PengZheng <[email protected]>
AuthorDate: Fri Jul 14 23:42:06 2023 +0800

    Use POSIX extension.
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1c00d485..1f9c7aeb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -46,7 +46,7 @@ if (ENABLE_TESTING)
 endif ()
 
 # Set C specific flags
-set(CMAKE_C_FLAGS "-D_GNU_SOURCE -std=gnu99 -fPIC ${CMAKE_C_FLAGS}")
+set(CMAKE_C_FLAGS "-D_GNU_SOURCE -D_POSIX_C_SOURCE=200809L -std=c99 -fPIC 
${CMAKE_C_FLAGS}")
 set(CMAKE_C_FLAGS "-Wall -Werror -Wformat -Wno-error=deprecated-declarations 
${CMAKE_C_FLAGS}")
 
 # Set C++ specific flags

Reply via email to