diff --git a/src/eventloop.c b/src/eventloop.c index 080d42a..7f1f519 100644 --- a/src/eventloop.c +++ b/src/eventloop.c @@ -10,6 +10,7 @@ #include #include +#include #include "raw1394.h" #include "kernel-raw1394.h" @@ -46,7 +47,7 @@ int raw1394_loop_iterate(struct raw1394_handle *handle) case RAW1394_REQ_ISO_RECEIVE: channel = (handle->buffer[0] >> 8) & 0x3f; #ifndef WORDS_BIGENDIAN - /* swap(buffer[0]); */ + handle->buffer[0] = bswap_32(handle->buffer[0]); #endif if (handle->iso_handler[channel]) {