diff options
Diffstat (limited to 'src/os/unix')
-rw-r--r-- | src/os/unix/ngx_freebsd_config.h | 6 | ||||
-rw-r--r-- | src/os/unix/ngx_linux_config.h | 3 | ||||
-rw-r--r-- | src/os/unix/ngx_posix_config.h | 3 | ||||
-rw-r--r-- | src/os/unix/ngx_solaris_config.h | 3 |
4 files changed, 13 insertions, 2 deletions
diff --git a/src/os/unix/ngx_freebsd_config.h b/src/os/unix/ngx_freebsd_config.h index 73deb9ccd..c187191b9 100644 --- a/src/os/unix/ngx_freebsd_config.h +++ b/src/os/unix/ngx_freebsd_config.h @@ -97,9 +97,11 @@ pid_t rfork_thread(int flags, void *stack, int (*func)(void *arg), void *arg); #endif -extern char *malloc_options; - #define NGX_HAVE_OS_SPECIFIC_INIT 1 +extern char **environ; +extern char *malloc_options; + + #endif /* _NGX_FREEBSD_CONFIG_H_INCLUDED_ */ diff --git a/src/os/unix/ngx_linux_config.h b/src/os/unix/ngx_linux_config.h index ac7d7a8df..74bbfb1bd 100644 --- a/src/os/unix/ngx_linux_config.h +++ b/src/os/unix/ngx_linux_config.h @@ -101,4 +101,7 @@ extern ssize_t sendfile(int s, int fd, int32_t *offset, size_t size); #define NGX_HAVE_OS_SPECIFIC_INIT 1 +extern char **environ; + + #endif /* _NGX_LINUX_CONFIG_H_INCLUDED_ */ diff --git a/src/os/unix/ngx_posix_config.h b/src/os/unix/ngx_posix_config.h index dc4341a94..984db9670 100644 --- a/src/os/unix/ngx_posix_config.h +++ b/src/os/unix/ngx_posix_config.h @@ -102,4 +102,7 @@ #endif +extern char **environ; + + #endif /* _NGX_POSIX_CONFIG_H_INCLUDED_ */ diff --git a/src/os/unix/ngx_solaris_config.h b/src/os/unix/ngx_solaris_config.h index a668b95e1..ba1d351c7 100644 --- a/src/os/unix/ngx_solaris_config.h +++ b/src/os/unix/ngx_solaris_config.h @@ -88,4 +88,7 @@ #define NGX_HAVE_OS_SPECIFIC_INIT 1 +extern char **environ; + + #endif /* _NGX_SOLARIS_CONFIG_H_INCLUDED_ */ |