diff options
author | Darren Tucker <dtucker@dtucker.net> | 2019-11-01 14:41:07 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2019-11-01 14:41:07 +1100 |
commit | 5eb7b9563ff818e17de24231bf2d347d9db302c5 (patch) | |
tree | 282a9f2ff7f716e7b40476b43feda7123d9f30a3 /openbsd-compat | |
parent | d500b59a825f6a58f2abf7b04eb1992d81e45d58 (diff) |
Add prototype for localtime_r if needed.
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/openbsd-compat.h | 4 |
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); | |||
322 | void freezero(void *, size_t); | 322 | void freezero(void *, size_t); |
323 | #endif | 323 | #endif |
324 | 324 | ||
325 | #ifndef HAVE_LOCALTIME_R | ||
326 | struct tm *localtime_r(const time_t *, struct tm *); | ||
327 | #endif | ||
328 | |||
325 | char *xcrypt(const char *password, const char *salt); | 329 | char *xcrypt(const char *password, const char *salt); |
326 | char *shadow_pw(struct passwd *pw); | 330 | char *shadow_pw(struct passwd *pw); |
327 | 331 | ||