termux-packages/packages/libbsd/endian.h.patch

19 lines
613 B
Diff
Raw Permalink Normal View History

2019-08-11 17:07:48 +02:00
diff -uNr libbsd-0.10.0/include/bsd/sys/endian.h libbsd-0.10.0.mod/include/bsd/sys/endian.h
--- libbsd-0.10.0/include/bsd/sys/endian.h 2019-08-08 01:00:44.000000000 +0300
+++ libbsd-0.10.0.mod/include/bsd/sys/endian.h 2019-08-11 20:23:57.120370524 +0300
@@ -28,12 +28,12 @@
2018-10-16 05:59:57 +02:00
#ifdef LIBBSD_OVERLAY
2019-08-11 17:07:48 +02:00
#include <sys/cdefs.h>
-#if __has_include_next(<endian.h>)
+#if __has_include_next(<endian.h>) && !defined(__ANDROID__)
2018-10-16 05:59:57 +02:00
#include_next <endian.h>
2019-08-11 17:07:48 +02:00
#endif
2018-10-16 05:59:57 +02:00
#else
2019-08-11 17:07:48 +02:00
#include <bsd/sys/cdefs.h>
-#if __has_include(<endian.h>)
+#if __has_include(<endian.h>) && !defined(__ANDROID__)
2018-10-16 05:59:57 +02:00
#include <endian.h>
#endif
2019-08-11 17:07:48 +02:00
#endif