diff options
author | obache <obache@pkgsrc.org> | 2010-10-03 08:53:00 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2010-10-03 08:53:00 +0000 |
commit | 088a3134adadeb60c019f46a1ca8a29f74cac0a4 (patch) | |
tree | a934ae5638ae61ee56e334be69d4c028c933f9f5 | |
parent | beae991db345255545ffdcdcbde0c2c7bf30fb63 (diff) | |
download | pkgsrc-088a3134adadeb60c019f46a1ca8a29f74cac0a4.tar.gz |
Fixes build failure on recent NetBSD with fmax()/fmin().
-rw-r--r-- | games/knightcap/distinfo | 4 | ||||
-rw-r--r-- | games/knightcap/patches/patch-ad | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/games/knightcap/distinfo b/games/knightcap/distinfo index 60b915dcaac..5827d92d3cc 100644 --- a/games/knightcap/distinfo +++ b/games/knightcap/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.5 2009/08/15 22:28:41 zafer Exp $ +$NetBSD: distinfo,v 1.6 2010/10/03 08:53:00 obache Exp $ SHA1 (KnightCap-3.6.tar.gz) = 923dc3e6b19f3b4b8c2d6236eb438388e68b878a RMD160 (KnightCap-3.6.tar.gz) = 83765c75bee566b552428d924815001c0be694b8 @@ -6,7 +6,7 @@ Size (KnightCap-3.6.tar.gz) = 157943 bytes SHA1 (patch-aa) = 8be5487db04419c82e8fcb9569145303ab783ef2 SHA1 (patch-ab) = ad31712d14e820521f38432eaa75be5a47a23693 SHA1 (patch-ac) = de3ce657b4d45aabde42faebe1e32dd95c190795 -SHA1 (patch-ad) = 370ff503922298556c75faac05ec9c828a2c63ce +SHA1 (patch-ad) = e9d87f18e34ec50defa435bc040f107da581e087 SHA1 (patch-ae) = 40882eb1368e90283a0bd79d1dd0d3f354fdb2ff SHA1 (patch-af) = cb051c8780f6cd81924747e8c140c4a32193f330 SHA1 (patch-ag) = 54358f858d37569eb13fb6c8fa76b38586051636 diff --git a/games/knightcap/patches/patch-ad b/games/knightcap/patches/patch-ad index 8ad85c006a9..ed5119b8a58 100644 --- a/games/knightcap/patches/patch-ad +++ b/games/knightcap/patches/patch-ad @@ -1,4 +1,4 @@ -$NetBSD: patch-ad,v 1.2 2009/08/01 05:29:59 hasso Exp $ +$NetBSD: patch-ad,v 1.3 2010/10/03 08:53:00 obache Exp $ --- knightcap.h.orig 1998-05-18 02:09:21 +0300 +++ knightcap.h 2009-08-01 07:33:40 +0300 @@ -50,11 +50,11 @@ $NetBSD: patch-ad,v 1.2 2009/08/01 05:29:59 hasso Exp $ return i1 > i2? i1 : i2; } -+#if defined(__DragonFly__) ++#if defined(__DragonFly__) || defined(__NetBSD__) +#include <sys/param.h> +#endif + -+#if !(defined(__DragonFly__) && __DragonFly_version >= 200204) ++#if !(defined(__DragonFly__) && __DragonFly_version >= 200204) && !(defined(__NetBSD__) && (__NetBSD_Version__ >= 599002100 || (__NetBSD_Version__ >= 501000000 && __NetBSD_Version__ < 599000000))) static inline float fmin(float i1, float i2) { return i1 > i2? i2 : i1; |