summaryrefslogtreecommitdiff
path: root/recipes/cdrkit/files/xconfig.patch
blob: 5af1a373b9e26baa1d2baf3a76bae6c21b0c7f71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- cdrkit-1.1.9/include/xconfig.h.in.orig	2006-12-02 12:10:05.000000000 +0100
+++ cdrkit-1.1.9/include/xconfig.h.in	2009-03-08 13:29:05.000000000 +0100
@@ -233,7 +233,11 @@
 /* If using network byte order             */
 #cmakedefine WORDS_BIGENDIAN
 /* If high bits come first in structures   */
-#cmakedefine BITFIELDS_HTOL
+#ifdef WORDS_BIGENDIAN
+#define BITFIELDS_HTOL
+#else
+#define BITFIELDS_LTOH
+#endif
 #define	HAVE_C_BIGENDIAN	/* Flag that WORDS_BIGENDIAN test was done */
 #define	HAVE_C_BITFIELDS	/* Flag that BITFIELDS_HTOL test was done  */