termux-packages/packages/uwsgi/uwsgi.h.patch

19 lines
417 B
Diff
Raw Normal View History

2021-12-10 21:37:54 +01:00
--- a/uwsgi.h
+++ b/uwsgi.h
2022-03-28 01:00:01 +02:00
@@ -4967,6 +4967,15 @@
2021-12-10 21:37:54 +01:00
int uwsgi_wait_for_mountpoint(char *);
int uwsgi_wait_for_socket(char *);
+#ifdef __ANDROID__
+#define pivot_root(new_root, put_old) (-1)
+#define pthread_setcancelstate(state, oldstate) (-1)
+#define pthread_setcanceltype(type, oldtype) (-1)
+#if __ANDROID_API__ < 26
+int futimes(int, const struct timeval[2]);
+#endif
+#endif
+
#ifdef __cplusplus
}
#endif