Sun Feb 16 15:39:51 2014 UTC ()
Need MIN/MAX on SunOS


(wiedi)
diff -r1.21 -r1.22 pkgsrc/textproc/groonga/distinfo
diff -r0 -r1.1 pkgsrc/textproc/groonga/patches/patch-lib_geo.h

cvs diff -r1.21 -r1.22 pkgsrc/textproc/groonga/distinfo (expand / switch to unified diff)

--- pkgsrc/textproc/groonga/distinfo 2014/01/29 09:00:15 1.21
+++ pkgsrc/textproc/groonga/distinfo 2014/02/16 15:39:50 1.22
@@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
1$NetBSD: distinfo,v 1.21 2014/01/29 09:00:15 obache Exp $ 1$NetBSD: distinfo,v 1.22 2014/02/16 15:39:50 wiedi Exp $
2 2
3SHA1 (groonga-3.1.2.tar.gz) = 305ef89b6b9f7e1d55719c2299edad0e10d2d203 3SHA1 (groonga-3.1.2.tar.gz) = 305ef89b6b9f7e1d55719c2299edad0e10d2d203
4RMD160 (groonga-3.1.2.tar.gz) = ef088956443c7d42c75b3a975b3ef2dfa96b8156 4RMD160 (groonga-3.1.2.tar.gz) = ef088956443c7d42c75b3a975b3ef2dfa96b8156
5Size (groonga-3.1.2.tar.gz) = 9495902 bytes 5Size (groonga-3.1.2.tar.gz) = 9495902 bytes
 6SHA1 (patch-lib_geo.h) = 0a3ae38000542a2bb68b47cf59dbe3d41f462e54

File Added: pkgsrc/textproc/groonga/patches/Attic/patch-lib_geo.h
$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