pkgsrc/games/exult/patches/patch-ac
dholland 51ec3cdb2c Fix broken build with gcc4 (and maybe not just with gcc4...)
Add missing dependence on freetype2.
PKGREVISION++
2008-07-27 20:14:14 +00:00

22 lines
755 B
Text

$NetBSD: patch-ac,v 1.1 2008/07/27 20:14:14 dholland Exp $
--- hash_utils.h~ 2003-08-31 13:32:24.000000000 -0400
+++ hash_utils.h 2008-07-27 13:37:43.000000000 -0400
@@ -26,7 +26,7 @@
#else
#if HAVE_EXT_HASH_MAP
# include <ext/hash_map>
-# if (defined(__GNUC__) && (__GNUC__ == 3) && ( __GNUC_MINOR__ > 0))
+# if (defined(__GNUC__) && ((__GNUC__ == 3) && ( __GNUC_MINOR__ > 0)) || __GNUC__ > 3)
using __gnu_cxx::hash_map;
# else
using std::hash_map;
@@ -44,7 +44,7 @@
#else
#if HAVE_EXT_HASH_SET
# include <ext/hash_set>
-# if (defined(__GNUC__) && (__GNUC__ == 3) && ( __GNUC_MINOR__ > 0))
+# if (defined(__GNUC__) && ((__GNUC__ == 3) && ( __GNUC_MINOR__ > 0)) || __GNUC__ > 3)
using __gnu_cxx::hash_set;
# else
using std::hash_set;