termux-packages/packages/kphp/runtime-udp.cpp.patch

15 lines
259 B
Diff

--- a/runtime/udp.cpp
+++ b/runtime/udp.cpp
@@ -8,6 +8,11 @@
#include <poll.h>
#include <sys/socket.h>
+#ifdef __ANDROID__
+#include <netinet/in.h>
+#include <netinet/in6.h>
+#endif
+
#include "common/resolver.h"
#include "runtime/critical_section.h"