From: Herb Lewis Date: Mon, 5 Mar 2007 17:02:20 +0000 (+0000) Subject: r21703: fix build when O_SYNC not defined X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~1002 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73b7a25ba8a2f7471c07a912da8b6968b41b4f1d;p=thirdparty%2Fsamba.git r21703: fix build when O_SYNC not defined --- diff --git a/source/libsmb/clifile.c b/source/libsmb/clifile.c index a8f214c771d..ac468e0aee5 100644 --- a/source/libsmb/clifile.c +++ b/source/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; }