summaryrefslogtreecommitdiff
path: root/misc/goffice0.10/patches/patch-goffice_math_go-dtoa.c
blob: 9415487eedea03a3ac160a78ecd3b742ddae2aa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-goffice_math_go-dtoa.c,v 1.2 2015/09/03 14:53:23 gdt Exp $

Ensure frexpl() is declared on NetBSD before 6.99.17.

--- goffice/math/go-dtoa.c.orig	2014-04-30 00:44:52.000000000 +0000
+++ goffice/math/go-dtoa.c
@@ -43,6 +43,13 @@ typedef GString FAKE_FILE;
 #define go_finitel isfinite
 #endif
 
+#if defined(__NetBSD__) 
+#if (__NetBSD_Version__ >= 699001700)
+/* in <math.h> in newer NetBSDs, should already be included */
+#else
+extern long double frexpl(long double, int*);
+#endif
+#endif /* __NetBSD__ */
 
 /* musl code starts here */