torsocks: add a patch to fix res symbols.

This commit is contained in:
Juan RP 2012-11-28 11:20:33 +01:00
parent da0e68d54d
commit 62fcc09141
2 changed files with 18 additions and 1 deletions

View file

@ -0,0 +1,17 @@
--- src/torsocks.c 2011-10-25 23:49:50.000000000 +0200
+++ src/torsocks.c 2011-10-30 11:53:11.292621715 +0100
@@ -174,10 +174,10 @@
#ifdef SUPPORT_RES_API
lib = dlopen(LIBRESOLV, RTLD_LAZY);
realres_init = dlsym(lib, "res_init");
- realresquery = dlsym(lib, "res_query");
- realressend = dlsym(lib, "res_send");
- realresquerydomain = dlsym(lib, "res_querydomain");
- realressearch = dlsym(lib, "res_search");
+ real__res_query = dlsym(lib, "res_query");
+ real__res_send = dlsym(lib, "res_send");
+ real__res_querydomain = dlsym(lib, "res_querydomain");
+ real__res_search = dlsym(lib, "res_search");
dlclose(lib);
#endif
#endif

View file

@ -1,7 +1,7 @@
# Template file for 'torsocks'
pkgname=torsocks
version=1.2
revision=1
revision=2
build_style=gnu-configure
conf_files="/etc/torsocks.conf"
configure_args="--disable-static --datarootdir=/usr/share/${pkgname}"