diff options
author | Nikolaus Klepp <office@klepp.biz> | 2015-06-11 03:00:34 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2015-06-11 03:04:20 +0200 |
commit | 91b7be12b453c1f0a6f3d5ff70778dedba0a690d (patch) | |
tree | a7896ae47f240a53b7b18df73e1b65e4ec736359 /tdeio | |
parent | 50b2ec504637d33a6bbfc297a9bb32c4fc2899f5 (diff) | |
download | tdelibs-91b7be12b453c1f0a6f3d5ff70778dedba0a690d.tar.gz tdelibs-91b7be12b453c1f0a6f3d5ff70778dedba0a690d.zip |
Fix FTBFS on freebsd
This resolves Bug 2431
Signed-off-by: Nikolaus Klepp <office@klepp.biz>
(cherry picked from commit 3be9f300c9a754320a02fd10a729ef797ffb8506)
Diffstat (limited to 'tdeio')
-rw-r--r-- | tdeio/tdeio/connection.cpp | 2 | ||||
-rw-r--r-- | tdeio/tdeio/kurlcompletion.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tdeio/tdeio/connection.cpp b/tdeio/tdeio/connection.cpp index 50427aecf..fa316f56d 100644 --- a/tdeio/tdeio/connection.cpp +++ b/tdeio/tdeio/connection.cpp @@ -43,7 +43,7 @@ #include <kdebug.h> #include <tqsocketnotifier.h> -#if defined(__OpenBSD__) +#if defined(__OpenBSD__) || defined(__FreeBSD__) #define __progname getprogname() #else extern char *__progname; diff --git a/tdeio/tdeio/kurlcompletion.cpp b/tdeio/tdeio/kurlcompletion.cpp index 9184e0d02..890f9f28c 100644 --- a/tdeio/tdeio/kurlcompletion.cpp +++ b/tdeio/tdeio/kurlcompletion.cpp @@ -778,13 +778,13 @@ bool KURLCompletion::userCompletion(const MyURL &url, TQString *match) // Environment variables // -#if !defined(__OpenBSD__) +#if !defined(__OpenBSD__) && !defined(__FreeBSD__) extern char **environ; // Array of environment variables #endif bool KURLCompletion::envCompletion(const MyURL &url, TQString *match) { -#if defined(__OpenBSD__) +#if defined(__OpenBSD__) || defined(__FreeBSD__) return false; #else if ( url.file().at(0) != '$' ) |