diff options
Diffstat (limited to 'ports/unix')
-rw-r--r-- | ports/unix/subports | 12 | ||||
-rw-r--r-- | ports/unix/syncfs/guts/syncfs.c (renamed from ports/unix/guts/syncfs.c) | 0 | ||||
-rw-r--r-- | ports/unix/syncfs/wrapfuncs.in | 2 | ||||
-rw-r--r-- | ports/unix/wrapfuncs.in | 1 |
4 files changed, 14 insertions, 1 deletions
diff --git a/ports/unix/subports b/ports/unix/subports new file mode 100644 index 0000000..e41b036 --- /dev/null +++ b/ports/unix/subports @@ -0,0 +1,12 @@ +#!/bin/sh +cat > dummy.c <<EOF +#include <unistd.h> +int main(void) { + syncfs(0); + return 0; +} +EOF +if ${CC} -o dummy dummy.c > /dev/null 2>&1; then + echo "unix/syncfs" +fi +rm -f dummy.c dummy diff --git a/ports/unix/guts/syncfs.c b/ports/unix/syncfs/guts/syncfs.c index 2c9a685..2c9a685 100644 --- a/ports/unix/guts/syncfs.c +++ b/ports/unix/syncfs/guts/syncfs.c diff --git a/ports/unix/syncfs/wrapfuncs.in b/ports/unix/syncfs/wrapfuncs.in new file mode 100644 index 0000000..7b36542 --- /dev/null +++ b/ports/unix/syncfs/wrapfuncs.in @@ -0,0 +1,2 @@ +# Added around 2011 to glibc +int syncfs(int fd); /* async_skip=0 */ diff --git a/ports/unix/wrapfuncs.in b/ports/unix/wrapfuncs.in index 1245593..2addb27 100644 --- a/ports/unix/wrapfuncs.in +++ b/ports/unix/wrapfuncs.in @@ -64,7 +64,6 @@ FILE *popen(const char *command, const char *mode); /* hand_wrapped=1 */ int fsync(int fd); /* async_skip=0 */ int fdatasync(int fd); /* async_skip=0 */ void sync(void); /* async_skip= */ -int syncfs(int fd); /* async_skip=0 */ int sync_file_range(int fd, off64_t offset, off64_t nbytes, unsigned int flags); /* async_skip=0 */ int msync(void *addr, size_t length, int flags); /* async_skip=0 */ mode_t umask(mode_t mask); |