Brad
2015-01-14 23:49:58 UTC
greetings developers,
i'm sending this to the list since i don't have a sourceforge account. i
ran into a problem building privoxy with --no-force:
cgisimple.c: In function ‘cgi_show_status’:
cgisimple.c:1052:52: error: ‘FORCE_PREFIX’ undeclared (first use in this
function)
if (!err) err = map(exports, "force-prefix", 1, FORCE_PREFIX, 1);
^
cgisimple.c:1052:52: note: each undeclared identifier is reported only
once for each function it appears in
that makes sense. i fixed it for myself with:
--- a/cgisimple.c 2015-01-14 16:27:43.296424437 -0600
+++ b/cgisimple.c 2015-01-14 16:28:18.984427925 -0600
@@ -1049,7 +1049,9 @@
}
#endif /* ndef CGI_EDIT_ACTIONS */
+#ifdef FEATURE_FORCE_LOAD
if (!err) err = map(exports, "force-prefix", 1, FORCE_PREFIX, 1);
+#endif /* def FEATURE_FORCE_LOAD */
if (err)
{
hope it's useful!
i'm sending this to the list since i don't have a sourceforge account. i
ran into a problem building privoxy with --no-force:
cgisimple.c: In function ‘cgi_show_status’:
cgisimple.c:1052:52: error: ‘FORCE_PREFIX’ undeclared (first use in this
function)
if (!err) err = map(exports, "force-prefix", 1, FORCE_PREFIX, 1);
^
cgisimple.c:1052:52: note: each undeclared identifier is reported only
once for each function it appears in
that makes sense. i fixed it for myself with:
--- a/cgisimple.c 2015-01-14 16:27:43.296424437 -0600
+++ b/cgisimple.c 2015-01-14 16:28:18.984427925 -0600
@@ -1049,7 +1049,9 @@
}
#endif /* ndef CGI_EDIT_ACTIONS */
+#ifdef FEATURE_FORCE_LOAD
if (!err) err = map(exports, "force-prefix", 1, FORCE_PREFIX, 1);
+#endif /* def FEATURE_FORCE_LOAD */
if (err)
{
hope it's useful!