]> granicus.if.org Git - pdns/commitdiff
Add warning when compiling with 2.95 or older
authorBert Hubert <bert.hubert@netherlabs.nl>
Wed, 9 Feb 2005 20:19:25 +0000 (20:19 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Wed, 9 Feb 2005 20:19:25 +0000 (20:19 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@301 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/dnspacket.hh

index 9e61f73c24779488d38a1275a6e02844d4544be2..571e3b8ce340d5ae99f9d51ef0b0ffc38dca70d6 100644 (file)
@@ -1,11 +1,10 @@
 /*
     PowerDNS Versatile Database Driven Nameserver
-    Copyright (C) 2002  PowerDNS.COM BV
+    Copyright (C) 2005  PowerDNS.COM BV
 
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
+    This program is free software; you can redistribute it and/or modify it
+    under the terms of the GNU General Public License version 2 as published
+    by the Free Software Foundation
 
     This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     along with this program; if not, write to the Free Software
     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
-// $Id: dnspacket.hh,v 1.17 2004/12/13 15:53:32 ahu Exp $
 #ifndef DNSPACKET_HH
+
+#if __GNUC__ == 2
+#if __GNUC_MINOR__ < 95
+       #error Your compiler is too old! Try g++ 3.3 or higher
+#else
+       #warning There are known problems with PowerDNS binaries compiled by gcc version 2.95 and 2.96!
+#endif
+#endif
+
 #define DNSPACKET_HH
 
 #include <cstdio>