diff options
Diffstat (limited to 'openbsd-compat/openbsd-compat.h')
-rw-r--r-- | openbsd-compat/openbsd-compat.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h index cff547745..cac799e84 100644 --- a/openbsd-compat/openbsd-compat.h +++ b/openbsd-compat/openbsd-compat.h | |||
@@ -60,6 +60,10 @@ int bindresvport_sa(int sd, struct sockaddr *sa); | |||
60 | void closefrom(int); | 60 | void closefrom(int); |
61 | #endif | 61 | #endif |
62 | 62 | ||
63 | #ifndef HAVE_GETPAGESIZE | ||
64 | int getpagesize(void); | ||
65 | #endif | ||
66 | |||
63 | #ifndef HAVE_GETCWD | 67 | #ifndef HAVE_GETCWD |
64 | char *getcwd(char *pt, size_t size); | 68 | char *getcwd(char *pt, size_t size); |
65 | #endif | 69 | #endif |
@@ -68,6 +72,10 @@ char *getcwd(char *pt, size_t size); | |||
68 | void *reallocarray(void *, size_t, size_t); | 72 | void *reallocarray(void *, size_t, size_t); |
69 | #endif | 73 | #endif |
70 | 74 | ||
75 | #ifndef HAVE_RECALLOCARRAY | ||
76 | void *recallocarray(void *, size_t, size_t, size_t); | ||
77 | #endif | ||
78 | |||
71 | #if !defined(HAVE_REALPATH) || defined(BROKEN_REALPATH) | 79 | #if !defined(HAVE_REALPATH) || defined(BROKEN_REALPATH) |
72 | /* | 80 | /* |
73 | * glibc's FORTIFY_SOURCE can redefine this and prevent us picking up the | 81 | * glibc's FORTIFY_SOURCE can redefine this and prevent us picking up the |
@@ -296,6 +304,10 @@ int bcrypt_pbkdf(const char *, size_t, const u_int8_t *, size_t, | |||
296 | void explicit_bzero(void *p, size_t n); | 304 | void explicit_bzero(void *p, size_t n); |
297 | #endif | 305 | #endif |
298 | 306 | ||
307 | #ifndef HAVE_FREEZERO | ||
308 | void freezero(void *, size_t); | ||
309 | #endif | ||
310 | |||
299 | char *xcrypt(const char *password, const char *salt); | 311 | char *xcrypt(const char *password, const char *salt); |
300 | char *shadow_pw(struct passwd *pw); | 312 | char *shadow_pw(struct passwd *pw); |
301 | 313 | ||