summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libsmb/clifile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c
index a8f214c771..ac468e0aee 100644
--- a/source3/libsmb/clifile.c
+++ b/source3/libsmb/clifile.c
@@ -1798,9 +1798,11 @@ static uint32 open_flags_to_wire(int flags)
if (flags & O_TRUNC) {
ret |= SMB_O_TRUNC;
}
+#if defined(O_SYNC)
if (flags & O_SYNC) {
ret |= SMB_O_SYNC;
}
+#endif /* O_SYNC */
if (flags & O_APPEND) {
ret |= SMB_O_APPEND;
}