diff options
Diffstat (limited to 'net-proxy/privoxy/files/privoxy-3.0.33-configure-c99.patch')
-rw-r--r-- | net-proxy/privoxy/files/privoxy-3.0.33-configure-c99.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/net-proxy/privoxy/files/privoxy-3.0.33-configure-c99.patch b/net-proxy/privoxy/files/privoxy-3.0.33-configure-c99.patch new file mode 100644 index 000000000000..9dfba3faca39 --- /dev/null +++ b/net-proxy/privoxy/files/privoxy-3.0.33-configure-c99.patch @@ -0,0 +1,34 @@ +Fix argument types in gmtime_r, localtime_r probes. Otherwise these +probes always fail with stricter compilers even if there is C library +support for these functions. + +Submitted upstream: <https://sourceforge.net/p/ijbswa/patches/149/> + +--- a/configure.in ++++ b/configure.in +@@ -615,9 +615,9 @@ AC_CHECK_FUNC(gmtime_r, [ + AC_TRY_COMPILE([ + # include <time.h> + ], [ +- struct time *t; +- struct tm *tm; +- (void) gmtime_r(t, tm) ++ time_t t; ++ struct tm tm; ++ (void) gmtime_r(&t, &tm) + ], [ + AC_MSG_RESULT(ok) + AC_DEFINE(HAVE_GMTIME_R) +@@ -633,9 +633,9 @@ AC_CHECK_FUNC(localtime_r, [ + AC_TRY_COMPILE([ + # include <time.h> + ], [ +- struct time *t; +- struct tm *tm; +- (void) localtime_r(t, tm) ++ time_t t; ++ struct tm tm; ++ (void) localtime_r(&t, &tm) + ], [ + AC_MSG_RESULT(ok) + AC_DEFINE(HAVE_LOCALTIME_R) |