r21703: fix build when O_SYNC not defined
authorHerb Lewis <herb@samba.org>
Mon, 5 Mar 2007 17:02:20 +0000 (17:02 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:18:23 +0000 (12:18 -0500)
source/libsmb/clifile.c

index a8f214c..ac468e0 100644 (file)
@@ -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;
        }