Files
nixpkgs/pkgs/by-name/pi/picotts/fix-compilation-darwin.patch
Sandro Jäckel b0d6998453 svox: combine with picotts
They where packaged from the same source, one using the upstream Android
library name, the other the new project name. Lets combine them into
one.
2026-05-23 23:37:39 +02:00

16 lines
418 B
Diff

diff --git a/pico/lib/picopltf.h b/pico/lib/picopltf.h
index 9b7cffd..f0f129b 100644
--- a/pico/lib/picopltf.h
+++ b/pico/lib/picopltf.h
@@ -70,6 +70,10 @@
#define __BYTE_ORDER _BYTE_ORDER
#define __BIG_ENDIAN _BIG_ENDIAN
#include <sys/endian.h>
+#elif (PICO_PLATFORM == PICO_MacOSX)
+#define __BYTE_ORDER BYTE_ORDER
+#define __BIG_ENDIAN BIG_ENDIAN
+#include <machine/endian.h>
#else
#include <endian.h>
#endif