From a4bffe0559a7fb47a530d2020f0371a12b6a1d1e Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Mon, 5 Mar 2007 17:02:20 +0000 Subject: r21703: fix build when O_SYNC not defined (This used to be commit 73b7a25ba8a2f7471c07a912da8b6968b41b4f1d) --- source3/libsmb/clifile.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/libsmb') 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; } -- cgit