diff options
author | 2012-03-25 20:04:18 +0000 | |
---|---|---|
committer | 2012-03-25 20:04:18 +0000 | |
commit | 1ef6a089d2c410cf4acd806cd08175f3f8aa93b8 (patch) | |
tree | 6bbc62d32cb61d54c146a0575c4dcce3755913e5 | |
parent | Move cache handling routines related definitions to a dedicated header file, (diff) | |
download | wireguard-openbsd-1ef6a089d2c410cf4acd806cd08175f3f8aa93b8.tar.xz wireguard-openbsd-1ef6a089d2c410cf4acd806cd08175f3f8aa93b8.zip |
strsignal() was added to POSIX-2008; strerror_r() was in the base
of POSIX-2001, without the XSI qualifier. Adjust conditionals to match.
ok millert@
-rw-r--r-- | include/string.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/string.h b/include/string.h index 7aada932480..4320745115d 100644 --- a/include/string.h +++ b/include/string.h @@ -1,4 +1,4 @@ -/* $OpenBSD: string.h,v 1.23 2012/01/17 02:48:01 guenther Exp $ */ +/* $OpenBSD: string.h,v 1.24 2012/03/25 20:04:18 guenther Exp $ */ /* $NetBSD: string.h,v 1.6 1994/10/26 00:56:30 cgd Exp $ */ /*- @@ -107,7 +107,7 @@ int strncasecmp(const char *, const char *, size_t); char *strdup(const char *); #endif -#if __BSD_VISIBLE || __XPG_VISIBLE >= 600 +#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112 int strerror_r(int, char *, size_t) __attribute__ ((__bounded__(__string__,2,3))); #endif @@ -119,6 +119,10 @@ char *strndup(const char *, size_t); size_t strnlen(const char *, size_t); #endif +#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200809 +char *strsignal(int); +#endif + #if __BSD_VISIBLE char *strcasestr(const char *, const char *); size_t strlcat(char *, const char *, size_t) @@ -127,7 +131,6 @@ size_t strlcpy(char *, const char *, size_t) __attribute__ ((__bounded__(__string__,1,3))); void strmode(int, char *); char *strsep(char **, const char *); -char *strsignal(int); int timingsafe_bcmp(const void *, const void *, size_t); #endif __END_DECLS |