reopen 542879
found 542879 1.4.3-1
thanks

Hi Andreas,

bug not fixed, actually, since you can't use “|| defined(foo)” in an
“#ifdef bar” line. That would rather be:
“#if defined(bar) || defined(foo)” as mentioned in my initial patch.

Updated patch attached, fixing the FTBFS.

Mraw,
KiBi.
Purpose: Enable Building on kbsd architecture
Author: Cyril Brulebois <[email protected]>, Andreas Tille <[email protected]>
Fixes: #542879

--- theseus.orig/distfit.h
+++ theseus/distfit.h
@@ -713,7 +713,7 @@
 #ifndef LOGNORMAL_SEEN
 #define LOGNORMAL_SEEN
 
-#ifdef __linux__
+#if defined(__linux__) || defined(__GLIBC__)
     extern double erf(double x);
 #endif
 
@@ -1446,7 +1446,7 @@
 #ifndef VONMISES_DIST_SEEN
 #define VONMISES_DIST_SEEN
 
-#ifdef __linux__
+#if defined(__linux__) || defined(__GLIBC__)
     extern double jn(int n, double x);
 #endif
 
--- theseus.orig/theseus.h
+++ theseus/theseus.h
@@ -51,7 +51,7 @@
 #include <string.h>
 #include <stdio.h>
 #include <unistd.h>
-#ifdef __linux__
+#if defined(__linux__) || defined(__GLIBC__)
   #include <getopt.h>
 #endif
 #include <ctype.h>

Attachment: signature.asc
Description: Digital signature

Reply via email to