diff options
author | Nikolaus Klepp <office@klepp.biz> | 2015-06-11 03:00:34 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2015-12-23 02:23:00 +0100 |
commit | c1136180cc5a0f991244129609f0e5d1af19b13a (patch) | |
tree | 9eca127d02399fc507a1001372714592a970b676 /kio | |
parent | e4ef4e00f92514c7b7405965edc66eacf562bf8d (diff) | |
download | tdelibs-c1136180cc5a0f991244129609f0e5d1af19b13a.tar.gz tdelibs-c1136180cc5a0f991244129609f0e5d1af19b13a.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 'kio')
-rw-r--r-- | kio/kio/connection.cpp | 2 | ||||
-rw-r--r-- | kio/kio/kurlcompletion.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/kio/kio/connection.cpp b/kio/kio/connection.cpp index 0e65643c8..786fbd5e3 100644 --- a/kio/kio/connection.cpp +++ b/kio/kio/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/kio/kio/kurlcompletion.cpp b/kio/kio/kurlcompletion.cpp index 2f02f3271..7d9941480 100644 --- a/kio/kio/kurlcompletion.cpp +++ b/kio/kio/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) != '$' ) |