diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-09-10 21:50:37 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-09-10 21:50:37 +0000 |
commit | d40363e57beb28182442494f318f783792bf1b4c (patch) | |
tree | 03ec95daf0b57935832f1ab4e8254c42250b91ee /include | |
parent | 247fb9f38c3f9589997048e96dc920a7e6c92752 (diff) |
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@
Diffstat (limited to 'include')
-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 |