diff options
author | Herb Lewis <herb@samba.org> | 2007-03-05 17:02:20 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:18:23 -0500 |
commit | a4bffe0559a7fb47a530d2020f0371a12b6a1d1e (patch) | |
tree | f95d11d22ba7db2201b3fdf3de48715f9f9154d2 /source3 | |
parent | 10ab7a3a78b5b4d38f93f13f5b91b5eea5308e86 (diff) | |
download | samba-a4bffe0559a7fb47a530d2020f0371a12b6a1d1e.tar.gz samba-a4bffe0559a7fb47a530d2020f0371a12b6a1d1e.tar.bz2 samba-a4bffe0559a7fb47a530d2020f0371a12b6a1d1e.zip |
r21703: fix build when O_SYNC not defined
(This used to be commit 73b7a25ba8a2f7471c07a912da8b6968b41b4f1d)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/clifile.c | 2 |
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; } |