diff options
author | midipix <writeonce@midipix.org> | 2018-07-07 19:41:36 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-07-07 19:41:36 -0400 |
commit | 7c9e3aa3246c0bd814be6cb2623dc4a1a709a07c (patch) | |
tree | 78153a7f5a3e22009bb822f8d4534da3a1aeb009 | |
parent | 0343bc93a55e2886f3d767c2cac88864042885ed (diff) | |
download | slibtool-7c9e3aa3246c0bd814be6cb2623dc4a1a709a07c.tar.bz2 slibtool-7c9e3aa3246c0bd814be6cb2623dc4a1a709a07c.tar.xz |
implementation: use of openat(): define _POSIX_C_SOURCE as needed.
-rw-r--r-- | src/internal/slibtool_libmeta_impl.c | 4 | ||||
-rw-r--r-- | src/internal/slibtool_mapfile_impl.c | 4 | ||||
-rw-r--r-- | src/internal/slibtool_objmeta_impl.c | 4 | ||||
-rw-r--r-- | src/logic/slbt_exec_install.c | 4 | ||||
-rw-r--r-- | src/logic/slbt_exec_link.c | 4 |
5 files changed, 20 insertions, 0 deletions
diff --git a/src/internal/slibtool_libmeta_impl.c b/src/internal/slibtool_libmeta_impl.c index 18984bd..a379352 100644 --- a/src/internal/slibtool_libmeta_impl.c +++ b/src/internal/slibtool_libmeta_impl.c @@ -4,6 +4,10 @@ /* Released under the Standard MIT License; see COPYING.SLIBTOOL. */ /*******************************************************************/ +#ifndef _POSIX_C_SOURCE +#define _POSIX_C_SOURCE 200809L +#endif + #include <fcntl.h> #include <stdio.h> #include <string.h> diff --git a/src/internal/slibtool_mapfile_impl.c b/src/internal/slibtool_mapfile_impl.c index a9c1d61..3a086de 100644 --- a/src/internal/slibtool_mapfile_impl.c +++ b/src/internal/slibtool_mapfile_impl.c @@ -1,3 +1,7 @@ +#ifndef _POSIX_C_SOURCE +#define _POSIX_C_SOURCE 200809L +#endif + #include <fcntl.h> #include <errno.h> #include <unistd.h> diff --git a/src/internal/slibtool_objmeta_impl.c b/src/internal/slibtool_objmeta_impl.c index b38cf75..e723a35 100644 --- a/src/internal/slibtool_objmeta_impl.c +++ b/src/internal/slibtool_objmeta_impl.c @@ -4,6 +4,10 @@ /* Released under the Standard MIT License; see COPYING.SLIBTOOL. */ /*******************************************************************/ +#ifndef _POSIX_C_SOURCE +#define _POSIX_C_SOURCE 200809L +#endif + #include <fcntl.h> #include <stdio.h> #include <slibtool/slibtool.h> diff --git a/src/logic/slbt_exec_install.c b/src/logic/slbt_exec_install.c index 32c1ac6..5f82f7e 100644 --- a/src/logic/slbt_exec_install.c +++ b/src/logic/slbt_exec_install.c @@ -4,6 +4,10 @@ /* Released under the Standard MIT License; see COPYING.SLIBTOOL. */ /*******************************************************************/ +#ifndef _POSIX_C_SOURCE +#define _POSIX_C_SOURCE 200809L +#endif + #include <fcntl.h> #include <stdio.h> #include <string.h> diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c index 0a1b5bd..267833e 100644 --- a/src/logic/slbt_exec_link.c +++ b/src/logic/slbt_exec_link.c @@ -4,6 +4,10 @@ /* Released under the Standard MIT License; see COPYING.SLIBTOOL. */ /*******************************************************************/ +#ifndef _POSIX_C_SOURCE +#define _POSIX_C_SOURCE 200809L +#endif + #include <stdlib.h> #include <stdio.h> #include <string.h> |