Skip to content

C99 compatibility issue in torsocks

this issue is a copy from this mail on tor-dev@tpo:

This patch is needed to avoid an implicit function declaration:

diff --git a/src/common/config-file.h b/src/common/config-file.h
index 23e1c89d488b789c..e710c202fe099f61 100644
--- a/src/common/config-file.h
+++ b/src/common/config-file.h
@@ -109,6 +109,7 @@ int conf_file_set_allow_inbound(const char *val, struct configuration *config);
 int conf_file_set_allow_outbound_localhost(const char *val, struct
 		configuration *config);
 int conf_file_set_isolate_pid(const char *val, struct configuration *config);
+int conf_file_set_enable_ipv6(const char *val, struct configuration *config);
 
 int conf_apply_socks_auth(struct configuration *config);

I'm not sure where the canonical upstream for this package is, so I'm reporting it here. Fedora is tracking this here:

torsocks: Missing declaration in src/common/config-file.h
https://bugzilla.redhat.com/show_bug.cgi?id=2154535

Related to:
https://fedoraproject.org/wiki/Changes/PortingToModernC
https://fedoraproject.org/wiki/Toolchain/PortingToModernC

Edited by trinity-1686a
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information