summaryrefslogtreecommitdiff
path: root/pgfuse.c
diff options
context:
space:
mode:
Diffstat (limited to 'pgfuse.c')
-rw-r--r--pgfuse.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pgfuse.c b/pgfuse.c
index faf2e6f..5ae1078 100644
--- a/pgfuse.c
+++ b/pgfuse.c
@@ -311,9 +311,15 @@ static char *flags_to_string( int flags )
( flags & O_CREAT ) ? "O_CREAT " : "",
( flags & O_TRUNC ) ? "O_TRUNC " : "",
( flags & O_EXCL ) ? "O_EXCL " : "",
+#ifdef O_NOFOLLOW
( flags & O_NOFOLLOW ) ? "O_NOFOLLOW " : "",
+#endif
+#ifdef O_CLOEXEC
( flags & O_CLOEXEC ) ? "O_CLOEXEC " : "",
+#endif
+#ifdef O_DIRECTORY
( flags & O_DIRECTORY ) ? "O_DIRECTORY " : "",
+#endif
( flags & O_APPEND ) ? "O_APPEND " : "" );
return s;