aboutsummaryrefslogtreecommitdiff
path: root/sound/shairplay/patches/003-fix_big-endian.patch
blob: 4db204eb7dba87faf9f5d3712b5a93b1a96df10d (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/lib/alac/alac.c
+++ b/src/lib/alac/alac.c
@@ -29,7 +29,7 @@
  *
  */
 
-static const int host_bigendian = 0;
+#define host_bigendian (htonl(42) == 42)
 
 #include <stdio.h>
 #include <stdlib.h>