From 2aa0509b2c45b778297bb0ea610b1a5ee34f64a9 Mon Sep 17 00:00:00 2001 From: schwarze <> Date: Sun, 10 Sep 2017 21:50:36 +0000 Subject: [PATCH] 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@ --- src/include/strings.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/include/strings.h b/src/include/strings.h index 7108bbe0..e72fb777 100644 --- a/src/include/strings.h +++ b/src/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