--- Python-2.7.11/Modules/posixmodule.c	2015-12-05 20:47:15.000000000 +0100
+++ Python-2.7.11_m/Modules/posixmodule.c	2016-01-16 18:29:22.221493400 +0100
@@ -558,7 +558,7 @@
     char osfile;
 } my_ioinfo;
 
-extern __declspec(dllimport) char * __pioinfo[];
+//extern __declspec(dllimport) char * __pioinfo[];
 #define IOINFO_L2E 5
 #define IOINFO_ARRAY_ELTS   (1 << IOINFO_L2E)
 #define IOINFO_ARRAYS 64
@@ -570,38 +570,39 @@
 int
 _PyVerify_fd(int fd)
 {
-    const int i1 = fd >> IOINFO_L2E;
-    const int i2 = fd & ((1 << IOINFO_L2E) - 1);
-
-    static int sizeof_ioinfo = 0;
-
-    /* Determine the actual size of the ioinfo structure,
-     * as used by the CRT loaded in memory
-     */
-    if (sizeof_ioinfo == 0 && __pioinfo[0] != NULL) {
-        sizeof_ioinfo = _msize(__pioinfo[0]) / IOINFO_ARRAY_ELTS;
-    }
-    if (sizeof_ioinfo == 0) {
-        /* This should not happen... */
-        goto fail;
-    }
-
-    /* See that it isn't a special CLEAR fileno */
-    if (fd != _NO_CONSOLE_FILENO) {
-        /* Microsoft CRT would check that 0<=fd<_nhandle but we can't do that.  Instead
-         * we check pointer validity and other info
-         */
-        if (0 <= i1 && i1 < IOINFO_ARRAYS && __pioinfo[i1] != NULL) {
-            /* finally, check that the file is open */
-            my_ioinfo* info = (my_ioinfo*)(__pioinfo[i1] + i2 * sizeof_ioinfo);
-            if (info->osfile & FOPEN) {
-                return 1;
-            }
-        }
-    }
-  fail:
-    errno = EBADF;
-    return 0;
+    return 1;
+  //  const int i1 = fd >> IOINFO_L2E;
+  //  const int i2 = fd & ((1 << IOINFO_L2E) - 1);
+
+  //  static int sizeof_ioinfo = 0;
+
+  //  /* Determine the actual size of the ioinfo structure,
+  //   * as used by the CRT loaded in memory
+  //   */
+  //  if (sizeof_ioinfo == 0 && __pioinfo[0] != NULL) {
+  //      sizeof_ioinfo = _msize(__pioinfo[0]) / IOINFO_ARRAY_ELTS;
+  //  }
+  //  if (sizeof_ioinfo == 0) {
+  //      /* This should not happen... */
+  //      goto fail;
+  //  }
+
+  //  /* See that it isn't a special CLEAR fileno */
+  //  if (fd != _NO_CONSOLE_FILENO) {
+  //      /* Microsoft CRT would check that 0<=fd<_nhandle but we can't do that.  Instead
+  //       * we check pointer validity and other info
+  //       */
+  //      if (0 <= i1 && i1 < IOINFO_ARRAYS && __pioinfo[i1] != NULL) {
+  //          /* finally, check that the file is open */
+  //          my_ioinfo* info = (my_ioinfo*)(__pioinfo[i1] + i2 * sizeof_ioinfo);
+  //          if (info->osfile & FOPEN) {
+  //              return 1;
+  //          }
+  //      }
+  //  }
+  //fail:
+  //  errno = EBADF;
+  //  return 0;
 }
 
 /* the special case of checking dup2.  The target fd must be in a sensible range */
