freebsd-ports/science/gnudatalanguage/files/patch-src__basic_fun.cpp
Thierry Thomas af1b41b6b8 GDL - GNU Data Language - is a free IDL (Interactive Data Language)
compatible incremental compiler (i.e.  runs IDL programs).

IDL is a registered trademark of Research Systems Inc.
(see: <http://www.rsinc.com/>)

Remark: slave port for Python module intentionnally not yet committed.

WWW: http://gnudatalanguage.sourceforge.net/
2005-10-31 18:48:23 +00:00

20 lines
428 B
C++

--- src/basic_fun.cpp.orig Mon Oct 17 10:22:04 2005
+++ src/basic_fun.cpp Mon Oct 24 21:08:57 2005
@@ -32,6 +32,9 @@
#else
#include <unistd.h>
#endif
+#if defined(__FreeBSD__)
+ extern "C" char **environ;
+#endif
#include "datatypes.hpp"
#include "envt.hpp"
@@ -2903,6 +2906,7 @@
BaseGDL* getenv_fun( EnvT* e)
{
+
SizeT nParam=e->NParam();
static int environmentIx = e->KeywordIx( "ENVIRONMENT" );