summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-12-05 23:27:02 (GMT)
committerGuido van Rossum <guido@python.org>1996-12-05 23:27:02 (GMT)
commit80bb9655f0e0843199b46719b032f2dc737cf013 (patch)
treeed12a68ba0a32b61f9c24346b40d46437e506e71 /Python/import.c
parented0af8fe702505001c67ec5e233fb84944529f7e (diff)
downloadcpython-80bb9655f0e0843199b46719b032f2dc737cf013.zip
cpython-80bb9655f0e0843199b46719b032f2dc737cf013.tar.gz
cpython-80bb9655f0e0843199b46719b032f2dc737cf013.tar.bz2
Keep gcc -Wall happy.
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c
index cd96951..de1772c 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