From 33645eb3476bdbce17301770c79d591f56369285 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Wed, 4 Apr 2012 01:37:05 +0200 Subject: [PATCH] now declares environ(7) if _WANT_ENVIRON. Note that it is very bad style of programs to access it directly. --- libmaxsi/include/unistd.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libmaxsi/include/unistd.h b/libmaxsi/include/unistd.h index 0db78076..f28dd0fe 100644 --- a/libmaxsi/include/unistd.h +++ b/libmaxsi/include/unistd.h @@ -76,6 +76,10 @@ __BEGIN_DECLS @include(intn_t.h) #endif +#if defined(_WANT_ENVIRON) +extern char** environ; +#endif + /* TODO: These are not implemented in libmaxsi/sortix yet. */ #if defined(__SORTIX_SHOW_UNIMPLEMENTED) unsigned alarm(unsigned);