1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

r21703: fix build when O_SYNC not defined

This commit is contained in:
Herb Lewis 2007-03-05 17:02:20 +00:00 committed by Gerald (Jerry) Carter
parent b8327b21dd
commit 73b7a25ba8

View 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;
}