diff --git a/nasal_builtin.h b/nasal_builtin.h index 536cfcb..50f7b24 100644 --- a/nasal_builtin.h +++ b/nasal_builtin.h @@ -1,5 +1,10 @@ #ifndef __NASAL_BUILTIN_H__ #define __NASAL_BUILTIN_H__ + +#if defined __APPLE__ +#include +#define environ (*_NSGetEnviron()) +#endif /* builtin functions must be called inside a function like this: var print=func(elems...){