pkgsrc/cad/boolean/patches/patch-ab
joerg 2ea4220459 Add DragonFly. Ensure that StatusBar has a non-inline constructor,
otherwise GCC might not create the type info and bail out during
linkage.
2006-03-28 20:42:48 +00:00

25 lines
536 B
Text

$NetBSD: patch-ab,v 1.4 2006/03/28 20:42:48 joerg Exp $
--- apps/edit/include/valuesvc.h.orig 2005-03-04 14:21:08.000000000 +0000
+++ apps/edit/include/valuesvc.h 2005-08-11 01:52:56.000000000 +0000
@@ -38,9 +38,10 @@
#else
-#if defined(__NetBSD__)
+#if defined(__NetBSD__) || defined(__DragonFly__)
#include <math.h>
+#include <limits.h>
#include <float.h>
@@ -48,7 +49,7 @@
#define MAXDOUBLE DBL_MAX
#endif
#ifndef MAXLONG
-#define MAXLONG 0x7fffffff
+#define MAXLONG LONG_MAX
#endif
#else