From 9ccb9f0559b57cc3fccf16f950720d8024699604 Mon Sep 17 00:00:00 2001 From: Yuuki Daruma Date: Wed, 14 Nov 2007 13:36:48 -0800 Subject: [PATCH] Fixing environ for freebsd and linux --- vm/os-freebsd.h | 4 ++++ vm/os-linux.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/vm/os-freebsd.h b/vm/os-freebsd.h index c535e2d71f..5cedbc82b7 100644 --- a/vm/os-freebsd.h +++ b/vm/os-freebsd.h @@ -10,3 +10,7 @@ extern int getosreldate(void); #define UNKNOWN_TYPE_P(file) ((file)->d_type == DT_UNKNOWN) #define DIRECTORY_P(file) ((file)->d_type == DT_DIR) + +#ifndef environ + extern char **environ; +#endif diff --git a/vm/os-linux.h b/vm/os-linux.h index af47f7bcea..21e34c98f8 100644 --- a/vm/os-linux.h +++ b/vm/os-linux.h @@ -1,2 +1,6 @@ #define UNKNOWN_TYPE_P(file) ((file)->d_type == DT_UNKNOWN) #define DIRECTORY_P(file) ((file)->d_type == DT_DIR) + +#ifndef environ + extern char **environ; +#endif