mirror of
https://github.com/termux/termux-packages.git
synced 2024-11-24 02:36:16 +00:00
1bbe66e98a
Incompatible with latest libuber-h3. A whole bunch of patches are quite unmaintainable. kphp-timelib is also disabled as only kphp depends on it.
19 lines
375 B
Diff
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;
|