termux-packages/packages/llbuild/include-llvm-Config-config....

37 lines
956 B
Diff
Raw Normal View History

2019-09-03 11:08:01 +02:00
diff --git a/include/llvm/Config/config.h b/include/llvm/Config/config.h
2019-09-21 19:53:00 +02:00
index 9cf1c89..9af2945 100644
2019-09-03 11:08:01 +02:00
--- a/include/llvm/Config/config.h
+++ b/include/llvm/Config/config.h
2019-09-21 19:53:00 +02:00
@@ -14,7 +14,9 @@
#define ENABLE_CRASH_OVERRIDES 1
2019-09-03 11:08:01 +02:00
/* Define to 1 if you have the `backtrace' function. */
+#if !defined(__ANDROID__)
2019-09-21 19:53:00 +02:00
#define HAVE_BACKTRACE TRUE
2019-09-03 11:08:01 +02:00
+#endif
2019-09-21 19:53:00 +02:00
#define BACKTRACE_HEADER <execinfo.h>
2019-09-03 11:08:01 +02:00
2019-09-21 19:53:00 +02:00
@@ -74,7 +76,11 @@
/* #undef HAVE_FFI_H */
2019-09-03 11:08:01 +02:00
2019-09-21 19:53:00 +02:00
/* Define to 1 if you have the `futimens' function. */
2019-09-03 11:08:01 +02:00
+#if defined(__ANDROID__)
+#define HAVE_FUTIMENS 1
+#else
/* #undef HAVE_FUTIMENS */
+#endif
2019-09-21 19:53:00 +02:00
/* Define to 1 if you have the `futimes' function. */
#define HAVE_FUTIMES 1
@@ -104,7 +110,9 @@
#define HAVE_LIBPTHREAD 1
/* Define to 1 if you have the `pthread_getname_np' function. */
+#if !defined(__ANDROID__)
#define HAVE_PTHREAD_GETNAME_NP 1
+#endif
/* Define to 1 if you have the `pthread_setname_np' function. */
#define HAVE_PTHREAD_SETNAME_NP 1