From bd02ea9984d47ffcd53008b81e69b5f39dde4809 Mon Sep 17 00:00:00 2001 From: joerg Date: Fri, 19 Apr 2013 23:28:47 +0000 Subject: Add dummy strcoll_l and strxfrm_l. --- include/string.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'include/string.h') diff --git a/include/string.h b/include/string.h index a02ab19e7fa..6107de369ac 100644 --- a/include/string.h +++ b/include/string.h @@ -1,4 +1,4 @@ -/* $NetBSD: string.h,v 1.41 2012/08/30 12:16:48 drochner Exp $ */ +/* $NetBSD: string.h,v 1.42 2013/04/19 23:28:47 joerg Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -114,6 +114,15 @@ int __consttime_bcmp(const void *, const void *, size_t); __END_DECLS #endif +#if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE) +# ifndef __LOCALE_T_DECLARED +typedef struct _locale *locale_t; +# define __LOCALE_T_DECLARED +# endif +int strcoll_l(const char *, const char *, locale_t); +size_t strxfrm_l(char * __restrict, const char * __restrict, size_t, locale_t); +#endif /* _POSIX_C_SOURCE || _NETBSD_SOURCE */ + #if _FORTIFY_SOURCE > 0 #include #endif -- cgit