#7706: DONT_HAVE_ERRNO_H is no longer defined by configure (after rev.46819).
diff --git a/Objects/fileobject.c b/Objects/fileobject.c
index 6456368..7c65b98 100644
--- a/Objects/fileobject.c
+++ b/Objects/fileobject.c
@@ -22,7 +22,7 @@
 
 #define BUF(v) PyString_AS_STRING((PyStringObject *)v)
 
-#ifndef DONT_HAVE_ERRNO_H
+#ifdef HAVE_ERRNO_H
 #include <errno.h>
 #endif