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

32 lines
692 B
Diff
Raw Normal View History

2021-12-10 21:37:54 +01:00
--- a/uwsgi.h
+++ b/uwsgi.h
@@ -209,7 +209,7 @@
#endif
#include <sys/ipc.h>
-#include <sys/sem.h>
+#include <linux/sem.h>
#include <stdarg.h>
#include <errno.h>
@@ -4967,6 +4967,19 @@
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
+#define semid_ds semid64_ds
+int semctl(int, int, int, ...);
+int semget(key_t, int, int);
+int semop(int, struct sembuf *, size_t);
+#endif
+
#ifdef __cplusplus
}
#endif