diff options
| author | joerg <joerg@NetBSD.org> | 2013-04-19 23:28:47 +0000 |
|---|---|---|
| committer | joerg <joerg@NetBSD.org> | 2013-04-19 23:28:47 +0000 |
| commit | bd02ea9984d47ffcd53008b81e69b5f39dde4809 (patch) | |
| tree | cfc608bc07bdd0d76e030932aaf1121e94732cd2 /include/string.h | |
| parent | 1dac79f3bd80a6f3f4e6813f54748c7c2037b235 (diff) | |
Add dummy strcoll_l and strxfrm_l.
Diffstat (limited to 'include/string.h')
| -rw-r--r-- | include/string.h | 11 |
1 files changed, 10 insertions, 1 deletions
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 <ssp/string.h> #endif |
