Package: stlport5 Severity: important Version: 5.0.0-1 Tags: patch
Hi, the current version fails to build on GNU/kFreeBSD. Please find an attached patch to fix that. It would be nice if you could get it included also in upstream. Thanks in advance, Petr
diff -u stlport5-5.0.0/stlport/config/stl_gcc.h stlport5-5.0.0/stlport/config/stl_gcc.h --- stlport5-5.0.0/stlport/config/stl_gcc.h +++ stlport5-5.0.0/stlport/config/stl_gcc.h @@ -3,7 +3,7 @@ */ /* Systems having GLIBC installed have different traits */ -#if defined (__linux__) || defined(__CYGWIN__) +#if defined (__linux__) || defined(__CYGWIN__) || defined(__GLIBC__) # ifndef _STLP_USE_GLIBC # define _STLP_USE_GLIBC 1 /* only in patch2: unchanged: --- stlport5-5.0.0.orig/src/num_get_float.cpp +++ stlport5-5.0.0/src/num_get_float.cpp @@ -25,7 +25,7 @@ #include <stdint.h> #endif -#ifdef __linux__ +#if defined (__linux__) || defined (__GLIBC__) # include <ieee754.h> # include <stdint.h> only in patch2: unchanged: --- stlport5-5.0.0.orig/stlport/stl/_config.h +++ stlport5-5.0.0/stlport/stl/_config.h @@ -51,7 +51,7 @@ /* Include useful information about system: */ -#ifdef __linux__ +#if defined (__linux__) || defined (__GLIBC__) # include <features.h> #endif @@ -373,7 +373,7 @@ # define _STLP_THREADS #endif /* _REENTRANT */ -#if defined (__linux__) && defined (_STLP_PTHREADS) +#if ( defined (__linux__) || defined (__GLIBC__) ) && defined (_STLP_PTHREADS) /* # include <features.h> */ # if defined (__USE_XOPEN2K) && !defined (_STLP_DONT_USE_PTHREAD_SPINLOCK)