summaryrefslogtreecommitdiff
path: root/src/lib/encoding/time_fmt.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2021-07-06 13:42:53 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2021-07-06 13:42:53 +0300
commit167f3bc4ecbe4f0265413f3a1b91b6faab1c0f81 (patch)
tree394375d616c7fd7e977fdcd6528f6d48dcf897c8 /src/lib/encoding/time_fmt.h
parent2758ae30b32cc75843cf216a310447eac4bdf7ac (diff)
parent98b9df61f6f2d33dab857b1e7d2f8e848678f5ed (diff)
downloadtor-167f3bc4ecbe4f0265413f3a1b91b6faab1c0f81.tar.gz
tor-167f3bc4ecbe4f0265413f3a1b91b6faab1c0f81.zip
Merge branch 'maint-0.4.5' into maint-0.4.6
Diffstat (limited to 'src/lib/encoding/time_fmt.h')
-rw-r--r--src/lib/encoding/time_fmt.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/encoding/time_fmt.h b/src/lib/encoding/time_fmt.h
index df38442e9b..aaf8ba7af0 100644
--- a/src/lib/encoding/time_fmt.h
+++ b/src/lib/encoding/time_fmt.h
@@ -18,6 +18,8 @@
#include <sys/types.h>
#endif
+#include "lib/testsupport/testsupport.h"
+
struct tm;
struct timeval;
@@ -41,4 +43,8 @@ int parse_iso_time_nospace(const char *cp, time_t *t);
int parse_http_time(const char *buf, struct tm *tm);
int format_time_interval(char *out, size_t out_len, long interval);
+#ifdef TIME_FMT_PRIVATE
+STATIC int tor_timegm_impl(const struct tm *tm, time_t *time_out);
+#endif
+
#endif /* !defined(TOR_TIME_FMT_H) */