Fixing environ for freebsd and linux
parent
001456e4bb
commit
9ccb9f0559
|
@ -10,3 +10,7 @@ extern int getosreldate(void);
|
||||||
|
|
||||||
#define UNKNOWN_TYPE_P(file) ((file)->d_type == DT_UNKNOWN)
|
#define UNKNOWN_TYPE_P(file) ((file)->d_type == DT_UNKNOWN)
|
||||||
#define DIRECTORY_P(file) ((file)->d_type == DT_DIR)
|
#define DIRECTORY_P(file) ((file)->d_type == DT_DIR)
|
||||||
|
|
||||||
|
#ifndef environ
|
||||||
|
extern char **environ;
|
||||||
|
#endif
|
||||||
|
|
|
@ -1,2 +1,6 @@
|
||||||
#define UNKNOWN_TYPE_P(file) ((file)->d_type == DT_UNKNOWN)
|
#define UNKNOWN_TYPE_P(file) ((file)->d_type == DT_UNKNOWN)
|
||||||
#define DIRECTORY_P(file) ((file)->d_type == DT_DIR)
|
#define DIRECTORY_P(file) ((file)->d_type == DT_DIR)
|
||||||
|
|
||||||
|
#ifndef environ
|
||||||
|
extern char **environ;
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue