mirror of
https://github.com/termux/termux-packages.git
synced 2025-03-04 08:18:54 +00:00
14 lines
381 B
Diff
14 lines
381 B
Diff
--- a/include/notcurses/ncport.h
|
|
+++ b/include/notcurses/ncport.h
|
|
@@ -16,6 +16,10 @@
|
|
|
|
#if defined(__linux__) // Linux
|
|
#include <byteswap.h>
|
|
+#ifdef __ANDROID__
|
|
+#undef __bswap_32
|
|
+#define __bswap_32 bswap_32
|
|
+#endif
|
|
#define htole(x) (__bswap_32(htonl(x)))
|
|
#elif defined(__APPLE__) // macOS
|
|
#include <libkern/OSByteOrder.h>
|