svn commit: samba r21703 - in branches: SAMBA_3_0/source/libsmb SAMBA_3_0_25/source/libsmb

herb at samba.org herb at samba.org
Mon Mar 5 17:02:20 GMT 2007


Author: herb
Date: 2007-03-05 17:02:20 +0000 (Mon, 05 Mar 2007)
New Revision: 21703

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21703

Log:
fix build when O_SYNC not defined

Modified:
   branches/SAMBA_3_0/source/libsmb/clifile.c
   branches/SAMBA_3_0_25/source/libsmb/clifile.c


Changeset:
Modified: branches/SAMBA_3_0/source/libsmb/clifile.c
===================================================================
--- branches/SAMBA_3_0/source/libsmb/clifile.c	2007-03-05 16:40:13 UTC (rev 21702)
+++ branches/SAMBA_3_0/source/libsmb/clifile.c	2007-03-05 17:02:20 UTC (rev 21703)
@@ -1798,9 +1798,11 @@
 	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;
 	}

Modified: branches/SAMBA_3_0_25/source/libsmb/clifile.c
===================================================================
--- branches/SAMBA_3_0_25/source/libsmb/clifile.c	2007-03-05 16:40:13 UTC (rev 21702)
+++ branches/SAMBA_3_0_25/source/libsmb/clifile.c	2007-03-05 17:02:20 UTC (rev 21703)
@@ -1807,9 +1807,11 @@
 	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;
 	}



More information about the samba-cvs mailing list