summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 4ac95ca..1d0e04e 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() )