Fix FTBFS on kFreeBSD and Hurd
authorGeorges Khaznadar <georgesk@debian.org>
Sat, 3 Sep 2016 15:57:10 +0000 (17:57 +0200)
committerCarsten Schoenert <c.schoenert@t-online.de>
Wed, 25 Jan 2017 21:38:35 +0000 (21:38 +0000)
The modification should allow the package to be built on new platforms:
hurd and *freebsd.

Gbp-Pq: Topic porting-kfreebsd-hurd
Gbp-Pq: Name Fix-FTBFS-on-kFreeBSD-and-Hurd.patch

include/kiway.h

index 3ec5af8cada280e3dc572457a118d177a4726997..c8c919ee560e980202b1cb2d3eb41c2d32695bde 100644 (file)
@@ -114,7 +114,7 @@ as such!  As such, it is OK to use UTF8 characters:
 // be mangled.
 #define KIFACE_INSTANCE_NAME_AND_VERSION   "KIFACE_1"
 
-#if defined(__linux__) || defined(__FreeBSD__)
+#if defined(__linux__) || defined(__GLIBC__) || defined(__FreeBSD__) || defined(__GNU__)
  #define LIB_ENV_VAR    wxT( "LD_LIBRARY_PATH" )
 #elif defined(__WXMAC__)
  #define LIB_ENV_VAR    wxT( "DYLD_LIBRARY_PATH" )