1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-19 15:37:04 +00:00
termux-packages/disabled-packages/kphp/common-resolver.cpp.patch
Tee KOBAYASHI 1bbe66e98a kphp: Disabled
Incompatible with latest libuber-h3. A whole bunch of patches are quite
unmaintainable.

kphp-timelib is also disabled as only kphp depends on it.
2022-11-17 18:08:03 +00:00

19 lines
375 B
Diff

--- a/common/resolver.cpp
+++ b/common/resolver.cpp
@@ -15,10 +15,14 @@
#include <sys/types.h>
#include <unistd.h>
+#ifdef __ANDROID__
+#include <sys/endian.h>
+#endif
+
#include "common/kprintf.h"
#include "common/options.h"
-#define HOSTS_FILE "/etc/hosts"
+#define HOSTS_FILE "@TERMUX_PREFIX@/etc/hosts"
#define MAX_HOSTS_SIZE (1L << 24)
int kdb_hosts_loaded;