packages/catacomb2: Support assembler code on Android.
[termux-packages] / packages / tsocks / tsocks.c.patch
CommitLineData
0301524b
OS
1diff --git a/tsocks.c b/tsocks.c
2index 9cfdfff..5518633 100644
3--- a/tsocks.c
4+++ b/tsocks.c
5@@ -682,6 +682,11 @@ int close(CLOSE_SIGNATURE) {
6 int rc;
7 struct connreq *conn;
8
9+ /*Sometimes this function seems to get called before _init has run*/
10+ if (realclose == NULL) {
11+ _init();
12+ }
13+
14 if (realclose == NULL) {
15 show_msg(MSGERR, "Unresolved symbol: close\n");
16 return(-1);