From 2e60d45ee6605dca2c3dee89c23a0c519cd36ba7 Mon Sep 17 00:00:00 2001 From: erg Date: Thu, 3 May 2007 19:09:15 +0000 Subject: [PATCH] Add modifications for ast to build on Windows --- lib/ast/pathpath.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/ast/pathpath.c b/lib/ast/pathpath.c index 4a652bb28..8a3e9331f 100644 --- a/lib/ast/pathpath.c +++ b/lib/ast/pathpath.c @@ -30,10 +30,18 @@ #include #include +#ifdef HAVE_UNISTD_H #include +#else +#include +#endif /* #include */ +#ifdef WIN32 +#define environ _environ +#else extern char **environ; +#endif char **opt_info_argv; char *pathpath(register char *path, const char *p, const char *a, int mode) -- 2.40.0