summaryrefslogtreecommitdiffhomepage
path: root/src/internal/slibtool_mapfile_impl.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-07-07 19:41:36 -0400
committermidipix <writeonce@midipix.org>2018-07-07 19:41:36 -0400
commit7c9e3aa3246c0bd814be6cb2623dc4a1a709a07c (patch)
tree78153a7f5a3e22009bb822f8d4534da3a1aeb009 /src/internal/slibtool_mapfile_impl.c
parent0343bc93a55e2886f3d767c2cac88864042885ed (diff)
downloadslibtool-7c9e3aa3246c0bd814be6cb2623dc4a1a709a07c.tar.bz2
slibtool-7c9e3aa3246c0bd814be6cb2623dc4a1a709a07c.tar.xz
implementation: use of openat(): define _POSIX_C_SOURCE as needed.
Diffstat (limited to 'src/internal/slibtool_mapfile_impl.c')
-rw-r--r--src/internal/slibtool_mapfile_impl.c4
1 files changed, 4 insertions, 0 deletions
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>