From 9cd1936c37d0fd8b589b88b147e4de34d7b3aebe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 29 Jun 2015 18:31:50 +0200 Subject: [PATCH] Fix FTBFS due to missing global variable 'environ' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit 1a18c69495634b5ec52f08086e835c7542003dc9) --- buildtools/lib/widgets/environmentdisplaydialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/buildtools/lib/widgets/environmentdisplaydialog.cpp b/buildtools/lib/widgets/environmentdisplaydialog.cpp index 4ac95ca7..1d0e04eb 100644 --- a/buildtools/lib/widgets/environmentdisplaydialog.cpp +++ b/buildtools/lib/widgets/environmentdisplaydialog.cpp @@ -23,12 +23,15 @@ #include "environmentdisplaydialog.h" +#if !defined(__OpenBSD__) && !defined(__FreeBSD__) extern char **environ; +#endif EnvironmentDisplayDialog::EnvironmentDisplayDialog(TQWidget* parent, const char* name, bool modal, WFlags fl) : EnvironmentDisplayDialogBase(parent,name, modal,fl) { TQStringList environment; +#if !defined(__OpenBSD__) && !defined(__FreeBSD__) char ** e = ::environ; while ( *e ) @@ -36,6 +39,7 @@ EnvironmentDisplayDialog::EnvironmentDisplayDialog(TQWidget* parent, const char* environment << *e; e++; } +#endif TQStringList::ConstIterator it = environment.begin(); while( it !=environment.end() )