diff --git a/srcpkgs/torsocks/patches/implicit-function-decl.patch b/srcpkgs/torsocks/patches/implicit-function-decl.patch new file mode 100644 index 00000000000..f9fe8820d6a --- /dev/null +++ b/srcpkgs/torsocks/patches/implicit-function-decl.patch @@ -0,0 +1,30 @@ +--- a/src/common/config-file.c ++++ b/src/common/config-file.c +@@ -23,6 +23,7 @@ + #include + #include + #include ++#include + #include + + #include "config-file.h" +@@ -56,6 +57,8 @@ static const char *isolate_username_fmt + /* Default password for the IsolatePID option. */ + static const char *isolate_password = "0"; + ++ATTR_HIDDEN ++int conf_file_set_enable_ipv6(const char *val, struct configuration *config); + /* + * Set the onion pool address range in the configuration object using the value + * found in the conf file. +--- a/src/lib/torsocks.c ++++ b/src/lib/torsocks.c +@@ -59,6 +59,8 @@ static TSOCKS_INIT_ONCE(term_once); + */ + static int is_suid; + ++ATTR_HIDDEN ++int conf_file_set_enable_ipv6(const char *val, struct configuration *config); + /* + * Cleanup and exit with the given status. Note that the lib destructor will be + * called after this call. diff --git a/srcpkgs/torsocks/template b/srcpkgs/torsocks/template index 3a56ddf70e8..dc087a2e6ef 100644 --- a/srcpkgs/torsocks/template +++ b/srcpkgs/torsocks/template @@ -1,7 +1,7 @@ # Template file for 'torsocks' pkgname=torsocks version=2.4.0 -revision=2 +revision=3 build_style=gnu-configure configure_args="--disable-static" hostmakedepends="automake libtool pkg-config"