summaryrefslogtreecommitdiffstats
path: root/kio
diff options
context:
space:
mode:
authorNikolaus Klepp <office@klepp.biz>2015-06-11 03:00:34 +0200
committerSlávek Banko <slavek.banko@axis.cz>2015-12-23 02:23:00 +0100
commitc1136180cc5a0f991244129609f0e5d1af19b13a (patch)
tree9eca127d02399fc507a1001372714592a970b676 /kio
parente4ef4e00f92514c7b7405965edc66eacf562bf8d (diff)
downloadtdelibs-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.cpp2
-rw-r--r--kio/kio/kurlcompletion.cpp4
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) != '$' )