From 5eb7b9563ff818e17de24231bf2d347d9db302c5 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Fri, 1 Nov 2019 14:41:07 +1100 Subject: Add prototype for localtime_r if needed. --- openbsd-compat/openbsd-compat.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h index 0430e1963..97b344b65 100644 --- a/openbsd-compat/openbsd-compat.h +++ b/openbsd-compat/openbsd-compat.h @@ -322,6 +322,10 @@ void explicit_bzero(void *p, size_t n); void freezero(void *, size_t); #endif +#ifndef HAVE_LOCALTIME_R +struct tm *localtime_r(const time_t *, struct tm *); +#endif + char *xcrypt(const char *password, const char *salt); char *shadow_pw(struct passwd *pw); -- cgit v1.2.3