summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_cdda.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/stream/stream_cdda.c b/stream/stream_cdda.c
index 0fcd3dbc9b..5a11e051ab 100644
--- a/stream/stream_cdda.c
+++ b/stream/stream_cdda.c
@@ -24,6 +24,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
+#include <endian.h>
#include "talloc.h"
@@ -177,7 +178,7 @@ static int fill_buffer(stream_t *s, char *buffer, int max_len)
if (!buf)
return 0;
-#if HAVE_BIGENDIAN
+#if BYTE_ORDER == BIG_ENDIAN
for (i = 0; i < CDIO_CD_FRAMESIZE_RAW / 2; i++)
buf[i] = le2me_16(buf[i]);
#endif