[tor-dev] C99 compatibility issue in torsocks

Florian Weimer fw at deneb.enyo.de
Sat Dec 17 15:17:53 UTC 2022


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>


More information about the tor-dev mailing list