diff options
author | François Andriot <francois.andriot@free.fr> | 2014-10-05 16:38:00 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2015-12-23 02:22:51 +0100 |
commit | 6cbb86f9ae6c4249af3c2e623b9436bae209ab0d (patch) | |
tree | 627ea9a40e1b8b42c2d82232463985b8744a070f /kio | |
parent | e703480d0d76933cffd6dfbacb7dfc75a59ecbf6 (diff) | |
download | tdelibs-6cbb86f9ae6c4249af3c2e623b9436bae209ab0d.tar.gz tdelibs-6cbb86f9ae6c4249af3c2e623b9436bae209ab0d.zip |
Disable environment-based completion in kurlcompletion on openbsd
(cherry picked from commit 78a66b11ddca8b557df4c73fec99469f78727382)
Diffstat (limited to 'kio')
-rw-r--r-- | kio/kio/kurlcompletion.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kio/kio/kurlcompletion.cpp b/kio/kio/kurlcompletion.cpp index 17caccb88..2f02f3271 100644 --- a/kio/kio/kurlcompletion.cpp +++ b/kio/kio/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 } ////////////////////////////////////////////////// |