From d8fec9d5c6656d9223bdec90e2b11c9750354102 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 16 Jul 2018 02:53:00 -0400 Subject: project: update the _XOPEN_SOURCE requirement to reflect use of openat(3). --- README | 2 +- config.project | 2 +- src/driver/slbt_driver_ctx.c | 4 ---- src/internal/slibtool_libmeta_impl.c | 4 ---- src/internal/slibtool_mapfile_impl.c | 4 ---- src/internal/slibtool_objmeta_impl.c | 4 ---- src/logic/slbt_exec_install.c | 4 ---- src/logic/slbt_exec_link.c | 4 ---- 8 files changed, 2 insertions(+), 26 deletions(-) diff --git a/README b/README index ff2e1cd..1199be3 100644 --- a/README +++ b/README @@ -45,7 +45,7 @@ effort, ease of customization, and long-term maintenance. - a C toolchain, consisting of - a C compiler such as gcc, clang, or [cparser]; - the compiler should support -std=c99; - - the system's libc should support -D_XOPEN_SOURCE=600. + - the system's libc should support -D_XOPEN_SOURCE=700. ## Usage diff --git a/config.project b/config.project index aff8c58..ce0b787 100644 --- a/config.project +++ b/config.project @@ -28,7 +28,7 @@ mb_default_shell=sh # switches -mb_default_cflags_common="-std=c99 -D_XOPEN_SOURCE=600" +mb_default_cflags_common="-std=c99 -D_XOPEN_SOURCE=700" mb_default_cflags_common="$mb_default_cflags_common -D_DEFAULT_SOURCE -D_BSD_SOURCE" mb_default_cflags_common="$mb_default_cflags_common -I\$(PROJECT_DIR)/src/internal" mb_default_cflags_common="$mb_default_cflags_common -I\$(PROJECT_DIR)/include" diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index 270f268..623a3f0 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -4,10 +4,6 @@ /* Released under the Standard MIT License; see COPYING.SLIBTOOL. */ /*******************************************************************/ -#ifndef _POSIX_C_SOURCE -#define _POSIX_C_SOURCE 200809L -#endif - #include #include #include diff --git a/src/internal/slibtool_libmeta_impl.c b/src/internal/slibtool_libmeta_impl.c index a379352..18984bd 100644 --- a/src/internal/slibtool_libmeta_impl.c +++ b/src/internal/slibtool_libmeta_impl.c @@ -4,10 +4,6 @@ /* Released under the Standard MIT License; see COPYING.SLIBTOOL. */ /*******************************************************************/ -#ifndef _POSIX_C_SOURCE -#define _POSIX_C_SOURCE 200809L -#endif - #include #include #include diff --git a/src/internal/slibtool_mapfile_impl.c b/src/internal/slibtool_mapfile_impl.c index 2b1b839..a084db8 100644 --- a/src/internal/slibtool_mapfile_impl.c +++ b/src/internal/slibtool_mapfile_impl.c @@ -4,10 +4,6 @@ /* Released under the Standard MIT License; see COPYING.SLIBTOOL. */ /*******************************************************************/ -#ifndef _POSIX_C_SOURCE -#define _POSIX_C_SOURCE 200809L -#endif - #include #include #include diff --git a/src/internal/slibtool_objmeta_impl.c b/src/internal/slibtool_objmeta_impl.c index e723a35..b38cf75 100644 --- a/src/internal/slibtool_objmeta_impl.c +++ b/src/internal/slibtool_objmeta_impl.c @@ -4,10 +4,6 @@ /* Released under the Standard MIT License; see COPYING.SLIBTOOL. */ /*******************************************************************/ -#ifndef _POSIX_C_SOURCE -#define _POSIX_C_SOURCE 200809L -#endif - #include #include #include diff --git a/src/logic/slbt_exec_install.c b/src/logic/slbt_exec_install.c index a52d53e..9665dd4 100644 --- a/src/logic/slbt_exec_install.c +++ b/src/logic/slbt_exec_install.c @@ -4,10 +4,6 @@ /* Released under the Standard MIT License; see COPYING.SLIBTOOL. */ /*******************************************************************/ -#ifndef _POSIX_C_SOURCE -#define _POSIX_C_SOURCE 200809L -#endif - #include #include #include diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c index a2501b9..67b51fc 100644 --- a/src/logic/slbt_exec_link.c +++ b/src/logic/slbt_exec_link.c @@ -4,10 +4,6 @@ /* Released under the Standard MIT License; see COPYING.SLIBTOOL. */ /*******************************************************************/ -#ifndef _POSIX_C_SOURCE -#define _POSIX_C_SOURCE 200809L -#endif - #include #include #include -- cgit v1.2.3