diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-11-22 13:58:45 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-11-22 13:58:45 +0000 |
commit | 067382cfe45b80a0d3f1afecf26b06acbba87ca8 (patch) | |
tree | 68f0b59ba207c08630eba8ce9f00ccba346cb82f | |
parent | f2d0cf53023f42852aaf61c1a6b12789b4286aa2 (diff) | |
download | skalibs-067382cfe45b80a0d3f1afecf26b06acbba87ca8.tar.xz |
Add O_DIRECTORY sysdep
-rw-r--r-- | README.macos (renamed from README.macosx) | 2 | ||||
-rwxr-xr-x | configure | 1 | ||||
-rw-r--r-- | src/sysdeps/tryodirectory.c | 5 |
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. @@ -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 ; |