summaryrefslogtreecommitdiffstats
path: root/tdeio
diff options
context:
space:
mode:
authorFrançois Andriot <francois.andriot@free.fr>2014-10-05 16:38:00 +0200
committerSlávek Banko <slavek.banko@axis.cz>2014-10-05 16:38:00 +0200
commit78a66b11ddca8b557df4c73fec99469f78727382 (patch)
treea50229d95ad59829fc5b871db2798ac8400b5c1d /tdeio
parent9c7a8637edeafb8abe66c2767837dfeb5f058537 (diff)
downloadtdelibs-78a66b11ddca8b557df4c73fec99469f78727382.tar.gz
tdelibs-78a66b11ddca8b557df4c73fec99469f78727382.zip
Disable environment-based completion in kurlcompletion on openbsd
Diffstat (limited to 'tdeio')
-rw-r--r--tdeio/tdeio/kurlcompletion.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tdeio/tdeio/kurlcompletion.cpp b/tdeio/tdeio/kurlcompletion.cpp
index 72f91261d..9184e0d02 100644
--- a/tdeio/tdeio/kurlcompletion.cpp
+++ b/tdeio/tdeio/kurlcompletion.cpp
@@ -778,10 +778,15 @@ bool KURLCompletion::userCompletion(const MyURL &url, TQString *match)
// Environment variables
//
+#if !defined(__OpenBSD__)
extern char **environ; // Array of environment variables
+#endif
bool KURLCompletion::envCompletion(const MyURL &url, TQString *match)
{
+#if defined(__OpenBSD__)
+ return false;
+#else
if ( url.file().at(0) != '$' )
return false;
@@ -816,6 +821,7 @@ bool KURLCompletion::envCompletion(const MyURL &url, TQString *match)
*match = finished();
return true;
+#endif
}
//////////////////////////////////////////////////