From 6cbb86f9ae6c4249af3c2e623b9436bae209ab0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Sun, 5 Oct 2014 16:38:00 +0200 Subject: Disable environment-based completion in kurlcompletion on openbsd (cherry picked from commit 78a66b11ddca8b557df4c73fec99469f78727382) --- kio/kio/kurlcompletion.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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 } ////////////////////////////////////////////////// -- cgit v1.2.1