preload-hacks: Some patches to make it work.
[termux-packages] / packages / tsocks / 07_tsocks-1.8_beta5-hostname-config-fix.patch
CommitLineData
0301524b
OS
1#! /bin/sh /usr/share/dpatch/dpatch-run
2## 07_tsocks-1.8_beta5-hostname-config-fix.patch by https://sourceforge.net/u/phobosk/profile/
3##
4## All lines beginning with `## DP:' are a description of the patch.
5## DP: Enable host name resolution on /etc/tsocks.conf at configure time,
6## DP: this was intended to be enabled in previous releases, but a bug in the configure script
7## DP: made it impossible
8## DP: Poor's man DEP3 headers
9## DP: Origin: https://sourceforge.net/p/tsocks/bugs/27/
10## DP: Last-Update: 2016-10-28
11
12--- tsocks-1.8.orig/configure.in
13+++ tsocks-1.8/configure.in
14@@ -171,8 +171,8 @@
15 AC_DEFINE(ALLOW_MSG_OUTPUT)
16 fi
17
18-if test "x${enable_hostnames}" = "x"; then
19- AC_DEFINE(HOSTNAMES)
20+if test "${enable_hostnames}" = "yes"; then
21+ AC_DEFINE(HOSTNAMES,1)
22 fi
23
24 if test "${enable_socksdns}" = "yes" -a \