netpbm/netpbm-10.26.22-endian.patch

20 lines
495 B
Diff

--- converter/other/fiasco/config.h
+++ converter/other/fiasco/config.h
@@ -23,7 +23,15 @@
/* Define if your processor stores words with the most significant
byte first (like Motorola and SPARC, unlike Intel and VAX). */
-/* #undef WORDS_BIGENDIAN */
+
+
+/* since we don't have autoconf... */
+#include <endian.h>
+#if __BYTE_ORDER == __BIG_ENDIAN
+#define WORDS_BIGENDIAN 1
+#endif
+
+
/* Define if the X Window System is missing or not being used. */
#define X_DISPLAY_MISSING 1