diff options
Diffstat (limited to 'win32/glob.c')
-rw-r--r-- | win32/glob.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/win32/glob.c b/win32/glob.c index a8c2cd83e2..b369362c19 100644 --- a/win32/glob.c +++ b/win32/glob.c @@ -81,8 +81,6 @@ #include <dirent.h> #include <pwd.h> #include <unistd.h> -#else -#include "win32/pwd.h" #endif #include <errno.h> #include "glob.h" @@ -359,7 +357,9 @@ globtilde(pattern, patbuf, patbuf_len, pglob) size_t patbuf_len; glob_t *pglob; { +#ifndef PHP_WIN32 struct passwd *pwd; +#endif char *h; const Char *p; Char *b, *eb; @@ -399,10 +399,14 @@ globtilde(pattern, patbuf, patbuf_len, pglob) /* * Expand a ~user */ +#ifndef PHP_WIN32 if ((pwd = getpwnam((char*) patbuf)) == NULL) return pattern; else h = pwd->pw_dir; +#else + return pattern; +#endif } /* Copy the home directory */ |