skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

commit 067382cfe45b80a0d3f1afecf26b06acbba87ca8
parent f2d0cf53023f42852aaf61c1a6b12789b4286aa2
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date:   Wed, 22 Nov 2017 13:58:45 +0000

 Add O_DIRECTORY sysdep

Diffstat:
AREADME.macos | 4++++
DREADME.macosx | 4----
Mconfigure | 1+
Asrc/sysdeps/tryodirectory.c | 5+++++
4 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/README.macos 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 @@ -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 @@ -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 @@ -0,0 +1,5 @@ +/* ISC license. */ + +#include <fcntl.h> + +int dummy = O_DIRECTORY ;