- Issue #15647: Make isdir static for windows and posix
diff --git a/Python/import.c b/Python/import.c
index 2f11e75..e95b7c0 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -115,7 +115,7 @@
 #endif
 
 #ifdef MS_WINDOWS
-int isdir(char *path) {
+static int isdir(char *path) {
     DWORD rv;
     /* see issue1293 and issue3677:
      * stat() on Windows doesn't recognise paths like
@@ -128,7 +128,7 @@
 }
 #else
 #ifdef HAVE_STAT
-int isdir(char *path) {
+static int isdir(char *path) {
     struct stat statbuf;
     return stat(path, &statbuf) == 0 && S_ISDIR(statbuf.st_mode);
 }