summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.macos (renamed from README.macosx)2
-rwxr-xr-xconfigure1
-rw-r--r--src/sysdeps/tryodirectory.c5
3 files changed, 7 insertions, 1 deletions
diff --git a/README.macosx b/README.macos
index f7ee000..3280f7d 100644
--- a/README.macosx
+++ b/README.macos
@@ -1,4 +1,4 @@
- This package will compile on Darwin (MacOS X), but the building of
+ This package will compile on Darwin (MacOS), but the building of
shared libraries is not supported.
Make sure you use the --disable-shared option to configure.
diff --git a/configure b/configure
index 84bffc4..dcf6d59 100755
--- a/configure
+++ b/configure
@@ -517,6 +517,7 @@ EOF
choose clr malloc0 MALLOC0 'non-NULL malloc(0)'
choose c msgdontwait MSGDONTWAIT 'MSG_DONTWAIT'
choose clr nbwaitall NBWAITALL 'non-blocking MSG_WAITALL'
+ choose c odirectory ODIRECTORY 'O_DIRECTORY'
choose cl openat OPENAT 'openat()'
choose cl linkat LINKAT 'linkat()'
choose clr pipe2 PIPE2 'pipe2()'
diff --git a/src/sysdeps/tryodirectory.c b/src/sysdeps/tryodirectory.c
new file mode 100644
index 0000000..7dd8ce8
--- /dev/null
+++ b/src/sysdeps/tryodirectory.c
@@ -0,0 +1,5 @@
+/* ISC license. */
+
+#include <fcntl.h>
+
+int dummy = O_DIRECTORY ;