summaryrefslogtreecommitdiffstats
path: root/openbsd-compat
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2019-11-01 04:41:07 +0100
committerDarren Tucker <dtucker@dtucker.net>2019-11-01 04:41:07 +0100
commit5eb7b9563ff818e17de24231bf2d347d9db302c5 (patch)
tree282a9f2ff7f716e7b40476b43feda7123d9f30a3 /openbsd-compat
parentCheck if IP_TOS is defined before using. (diff)
downloadopenssh-5eb7b9563ff818e17de24231bf2d347d9db302c5.tar.xz
openssh-5eb7b9563ff818e17de24231bf2d347d9db302c5.zip
Add prototype for localtime_r if needed.
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/openbsd-compat.h4
1 files changed, 4 insertions, 0 deletions
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);