mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-26 23:42:57 +02:00
torsocks: add a patch to fix res symbols.
This commit is contained in:
parent
da0e68d54d
commit
62fcc09141
2 changed files with 18 additions and 1 deletions
17
srcpkgs/torsocks/patches/rename_res_funs.patch
Normal file
17
srcpkgs/torsocks/patches/rename_res_funs.patch
Normal 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
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'torsocks'
|
# Template file for 'torsocks'
|
||||||
pkgname=torsocks
|
pkgname=torsocks
|
||||||
version=1.2
|
version=1.2
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
conf_files="/etc/torsocks.conf"
|
conf_files="/etc/torsocks.conf"
|
||||||
configure_args="--disable-static --datarootdir=/usr/share/${pkgname}"
|
configure_args="--disable-static --datarootdir=/usr/share/${pkgname}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue