9bf1fc
diff -ru pixz-1.0.7.orig/src/endian.c pixz-1.0.7/src/endian.c
9bf1fc
--- pixz-1.0.7.orig/src/endian.c	2020-05-25 05:30:21.000000000 +0200
9bf1fc
+++ pixz-1.0.7/src/endian.c	2020-08-09 15:50:06.411547650 +0200
9bf1fc
@@ -10,12 +10,12 @@
9bf1fc
     OSWriteLittleInt64(d, 0, n);
9bf1fc
 }
9bf1fc
 
9bf1fc
-#elif defined(__linux__) || defined(__FreeBSD__)
9bf1fc
+#elif defined(__linux__) || defined(__FreeBSD__) || defined(__midipix__)
9bf1fc
 
9bf1fc
 #include "config.h"
9bf1fc
 #include <stdint.h>
9bf1fc
 #include <string.h>
9bf1fc
-#ifdef __linux__
9bf1fc
+#if defined(__linux__) || defined(__midipix__)
9bf1fc
 	#include <endian.h>
9bf1fc
 	#include <byteswap.h>
9bf1fc
 #else