diff options
Diffstat (limited to 'ports/unix/subports')
-rw-r--r-- | ports/unix/subports | 12 |
1 files changed, 12 insertions, 0 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 |