diff options
Diffstat (limited to 'textproc/groonga')
-rw-r--r-- | textproc/groonga/distinfo | 3 | ||||
-rw-r--r-- | textproc/groonga/patches/patch-lib_geo.h | 23 |
2 files changed, 25 insertions, 1 deletions
diff --git a/textproc/groonga/distinfo b/textproc/groonga/distinfo index 300e7c30e49..36b0027f707 100644 --- a/textproc/groonga/distinfo +++ b/textproc/groonga/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.21 2014/01/29 09:00:15 obache Exp $ +$NetBSD: distinfo,v 1.22 2014/02/16 15:39:50 wiedi Exp $ SHA1 (groonga-3.1.2.tar.gz) = 305ef89b6b9f7e1d55719c2299edad0e10d2d203 RMD160 (groonga-3.1.2.tar.gz) = ef088956443c7d42c75b3a975b3ef2dfa96b8156 Size (groonga-3.1.2.tar.gz) = 9495902 bytes +SHA1 (patch-lib_geo.h) = 0a3ae38000542a2bb68b47cf59dbe3d41f462e54 diff --git a/textproc/groonga/patches/patch-lib_geo.h b/textproc/groonga/patches/patch-lib_geo.h new file mode 100644 index 00000000000..9711302f6c9 --- /dev/null +++ b/textproc/groonga/patches/patch-lib_geo.h @@ -0,0 +1,23 @@ +$NetBSD: patch-lib_geo.h,v 1.1 2014/02/16 15:39:51 wiedi Exp $ + +need MIN/MAX on SunOS +--- lib/geo.h.orig 2013-12-20 09:27:33.336349381 +0000 ++++ lib/geo.h +@@ -24,7 +24,7 @@ + #include "ii.h" + #include "db.h" + +-#ifdef WIN32 ++#if defined(WIN32) || defined(__sun) + # define _USE_MATH_DEFINES + # ifndef MAX + # define MAX(a, b) ((a) > (b) ? (a) : (b)) +@@ -33,7 +33,7 @@ + # ifndef MIN + # define MIN(a, b) ((a) < (b) ? (a) : (b)) + # endif +-#endif /* WIN32 */ ++#endif /* WIN32 or __sun */ + #include <math.h> + + #ifdef __cplusplus |