Fixing environ for freebsd and linux

release
Yuuki Daruma 2007-11-14 13:36:48 -08:00
parent 001456e4bb
commit 9ccb9f0559
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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