[DebianGIS-dev] Bug#539123: libterralib: FTBFS on GNU/kFreeBSD

Cyril Brulebois kibi at debian.org
Wed Jul 29 09:19:21 UTC 2009


Package: libterralib
Version: 3.3.1-1
Severity: important
Tags: patch
User: glibc-bsd-devel at lists.alioth.debian.org
Usertags: kfreebsd

Hi,

please find attached a patch to fix FTBFS on GNU/kFreeBSD. A similar
defined() on __GNU__ might help GNU/Hurd people, but I didn't check the
build on such a platform.

Thanks for considering.

Mraw,
KiBi.
-------------- next part --------------
--- a/src/terralib/kernel/TeDefines.h
+++ b/src/terralib/kernel/TeDefines.h
@@ -49,7 +49,7 @@ of this library and its documentation.
 
 #if defined( WIN32 ) || defined( __WIN32__ ) || defined ( _WIN32 ) || defined( WIN64 ) || defined( _WIN32_WCE )
   #define TePLATFORM TePLATFORMCODE_MSWINDOWS
-#elif defined( __LINUX__ ) || defined( linux ) || defined( __linux__ ) ||defined( __FreeBSD__ ) //FAMI
+#elif defined( __LINUX__ ) || defined( linux ) || defined( __linux__ ) ||defined( __FreeBSD__ ) || defined( __GLIBC__ ) //FAMI
   #define TePLATFORM TePLATFORMCODE_LINUX
 #elif defined( __APPLE_CC__ ) || defined( APPLE_CC )
   #define TePLATFORM TePLATFORMCODE_APPLE


More information about the Pkg-grass-devel mailing list