=== extensions/expat/lib/expat_config.h
==================================================================
--- extensions/expat/lib/expat_config.h	(revision 65)
+++ extensions/expat/lib/expat_config.h	(local)
@@ -0,0 +1,9 @@
+#include "Python.h"
+#ifdef BYTEORDER
+#undef BYTEORDER
+#endif
+#ifdef WORDS_BIGENDIAN
+#define BYTEORDER 4321
+#else
+#define BYTEORDER 1234
+#endif
=== setup.py
==================================================================
--- setup.py	(revision 65)
+++ setup.py	(local)
@@ -97,15 +97,10 @@
     libraries = ['expat']
     library_dirs = [os.path.join(expat_prefix, "lib")]
 else:
-    # To build expat 1.95.x, we need to find out the byteorder
-    if sys.byteorder == "little":
-        xmlbo = "1234"
-    else:
-        xmlbo = "4321"
     define_macros = [
         ('XML_NS', '1'),
         ('XML_DTD', '1'),
-        ('BYTEORDER', xmlbo),
+        ('HAVE_EXPAT_CONFIG_H', '1'),
         ('XML_CONTEXT_BYTES','1024'),
         ]
     if sys.platform == "win32":
