From 067382cfe45b80a0d3f1afecf26b06acbba87ca8 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 22 Nov 2017 13:58:45 +0000 Subject: Add O_DIRECTORY sysdep --- README.macos | 4 ++++ README.macosx | 4 ---- configure | 1 + src/sysdeps/tryodirectory.c | 5 +++++ 4 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 README.macos delete mode 100644 README.macosx create mode 100644 src/sysdeps/tryodirectory.c diff --git a/README.macos b/README.macos new file mode 100644 index 0000000..3280f7d --- /dev/null +++ b/README.macos @@ -0,0 +1,4 @@ + + 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/README.macosx b/README.macosx deleted file mode 100644 index f7ee000..0000000 --- a/README.macosx +++ /dev/null @@ -1,4 +0,0 @@ - - This package will compile on Darwin (MacOS X), 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 + +int dummy = O_DIRECTORY ; -- cgit v1.2.3