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)
(This used to be commit 73b7a25ba8a2f7471c07a912da8b6968b41b4f1d)

source3/libsmb/clifile.c

index a8f214c771d931084864fed32d4dbf8fdf6131c2..ac468e0aee52b2e6252ef964fa83bbb627bd885e 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;
        }