summaryrefslogtreecommitdiff
path: root/source3/tdb
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-11-15 21:21:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:17 -0500
commitb5eeca9f7062164bc7f9761395823df3f584d136 (patch)
tree5aef8e8046f6ead06fc3db808cd4567f1d5e6a87 /source3/tdb
parent0cd225cbf3808b209d2250b0f3e4f2da45e3f7cc (diff)
downloadsamba-b5eeca9f7062164bc7f9761395823df3f584d136.tar.gz
samba-b5eeca9f7062164bc7f9761395823df3f584d136.tar.bz2
samba-b5eeca9f7062164bc7f9761395823df3f584d136.zip
r3772: BUG 2006: patch from Michel Gravey <michel.gravey@optogone.com>; fix build when using gcc 3.0
(This used to be commit 1bc79a28080f2ff783b49e5cf3adfdfc4a4940ee)
Diffstat (limited to 'source3/tdb')
-rw-r--r--source3/tdb/tdb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/tdb/tdb.h b/source3/tdb/tdb.h
index 153b6e9923..901d470a50 100644
--- a/source3/tdb/tdb.h
+++ b/source3/tdb/tdb.h
@@ -36,7 +36,7 @@ extern "C" {
* the parameter containing the format, and a2 the index of the first
* argument. Note that some gcc 2.x versions don't handle this
* properly **/
-#if (__GNUC__ >= 3)
+#if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
#define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format (__printf__, a1, a2)))
#else
#define PRINTF_ATTRIBUTE(a1, a2)