diff options
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c index cd96951f2d..de1772cc80 100644 --- a/Python/import.c +++ b/Python/import.c @@ -53,6 +53,10 @@ PERFORMANCE OF THIS SOFTWARE. #include "macglue.h" #endif +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif + extern long getmtime(); /* In getmtime.c */ /* Magic word to reject .pyc files generated by other Python versions */ @@ -419,7 +423,7 @@ find_module(name, path, buf, buflen, p_fp) FILE **p_fp; { int i, npath, len, namelen; - struct filedescr *fdp; + struct filedescr *fdp = NULL; FILE *fp = NULL; #ifdef MS_COREDLL |