svn commit: samba r22660 - in branches/SAMBA_3_0_25/source/lib/replace: . test

2007-05-04 Thread metze
Author: metze
Date: 2007-05-04 07:00:09 + (Fri, 04 May 2007)
New Revision: 22660

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=22660

Log:
merge from SAMBA_4_0:
- add AC_GNU_SOURCE macro for systems which don't have it
  (sles8)
- fix compiler warning on some systems

jerry: this should be in 3.0.25

metze
Modified:
   branches/SAMBA_3_0_25/source/lib/replace/autoconf-2.60.m4
   branches/SAMBA_3_0_25/source/lib/replace/test/testsuite.c


Changeset:
Modified: branches/SAMBA_3_0_25/source/lib/replace/autoconf-2.60.m4
===
--- branches/SAMBA_3_0_25/source/lib/replace/autoconf-2.60.m4   2007-05-04 
06:59:26 UTC (rev 22659)
+++ branches/SAMBA_3_0_25/source/lib/replace/autoconf-2.60.m4   2007-05-04 
07:00:09 UTC (rev 22660)
@@ -1,3 +1,16 @@
+# AC_GNU_SOURCE
+# --
+AC_DEFUN([AC_GNU_SOURCE],
+[AH_VERBATIM([_GNU_SOURCE],
+[/* Enable GNU extensions on systems that have them.  */
+#ifndef _GNU_SOURCE
+# undef _GNU_SOURCE
+#endif])dnl
+AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl
+AC_BEFORE([$0], [AC_RUN_IFELSE])dnl
+AC_DEFINE([_GNU_SOURCE])
+])
+
 # _AC_C_STD_TRY(STANDARD, TEST-PROLOGUE, TEST-BODY, OPTION-LIST,
 #  ACTION-IF-AVAILABLE, ACTION-IF-UNAVAILABLE)
 # --

Modified: branches/SAMBA_3_0_25/source/lib/replace/test/testsuite.c
===
--- branches/SAMBA_3_0_25/source/lib/replace/test/testsuite.c   2007-05-04 
06:59:26 UTC (rev 22659)
+++ branches/SAMBA_3_0_25/source/lib/replace/test/testsuite.c   2007-05-04 
07:00:09 UTC (rev 22660)
@@ -511,7 +511,7 @@
   \tptr: %p - %p = %d != %d\n \
   ]\n, \
   __STRING(func), __location__, __STRING(func), \
-  str, diff, base, res, _v, _ep, _p, diff - (_ep - _p), 
diff); \
+  str, diff, base, res, _v, _ep, _p, (int)(diff - (_ep - 
_p)), diff); \
return false; \
} \
 } while (0)



Re: svn commit: samba r22660 - in branches/SAMBA_3_0_25/source/lib/replace: . test

2007-05-04 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

[EMAIL PROTECTED] wrote:
 Author: metze
 Date: 2007-05-04 07:00:09 + (Fri, 04 May 2007)
 New Revision: 22660
 
 WebSVN: 
 http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=22660
 
 Log:
 merge from SAMBA_4_0:
 - add AC_GNU_SOURCE macro for systems which don't have it
   (sles8)
 - fix compiler warning on some systems
 
 jerry: this should be in 3.0.25

Got it.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGO3kqIR7qMdg1EfYRAhcIAKDIJrrAfB/2pYAheXi3/owDMF6klQCgt6Po
nP3i/tdgNlldTiReWp4viOk=
=0pP3
-END PGP SIGNATURE-