diff options
author | 2017-09-10 21:50:36 +0000 | |
---|---|---|
committer | 2017-09-10 21:50:36 +0000 | |
commit | 091ba0ade1085fe17cd7dcd29834a6da421eb452 (patch) | |
tree | 394df3fa7926268a8e47ed4b353f645d55d6b956 | |
parent | shm_open(), sysconf(), tcflow(), and tcsendbreak() are not permitted to be (diff) | |
download | wireguard-openbsd-091ba0ade1085fe17cd7dcd29834a6da421eb452.tar.xz wireguard-openbsd-091ba0ade1085fe17cd7dcd29834a6da421eb452.zip |
str[n]casecmp_l(3) appeared in POSIX 2008, not in XPG 4;
phessler@ reported that this oversight broke an armv7 bulk build;
OK guenther@
-rw-r--r-- | include/strings.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/strings.h b/include/strings.h index 7108bbe041e..e72fb7776a4 100644 --- a/include/strings.h +++ b/include/strings.h @@ -1,4 +1,4 @@ -/* $OpenBSD: strings.h,v 1.5 2017/09/05 03:16:13 schwarze Exp $ */ +/* $OpenBSD: strings.h,v 1.6 2017/09/10 21:50:36 schwarze Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -73,6 +73,8 @@ char *rindex(const char *, int); int ffs(int); int strcasecmp(const char *, const char *); int strncasecmp(const char *, const char *, size_t); +#endif +#if __POSIX_VISIBLE >= 200809 int strcasecmp_l(const char *, const char *, locale_t); int strncasecmp_l(const char *, const char *, size_t, locale_t); #endif |