summaryrefslogtreecommitdiffstats
path: root/buildtools/lib
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2015-06-29 18:31:50 +0200
committerSlávek Banko <slavek.banko@axis.cz>2015-06-29 18:31:50 +0200
commit1a18c69495634b5ec52f08086e835c7542003dc9 (patch)
tree1b4a5e72608180139f58dadabf3b7a137dd0db6e /buildtools/lib
parent9097720c1da8fe553e05e5e7289f8cea4ac76fa2 (diff)
downloadtdevelop-1a18c69495634b5ec52f08086e835c7542003dc9.tar.gz
tdevelop-1a18c69495634b5ec52f08086e835c7542003dc9.zip
Fix FTBFS due to missing global variable 'environ'
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'buildtools/lib')
-rw-r--r--buildtools/lib/widgets/environmentdisplaydialog.cpp4
1 files changed, 4 insertions, 0 deletions
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() )