git: libc: Fix strcasecmp_l() and strncasecmp_l() issues.

Sascha Wildner swildner at
Wed May 21 12:13:29 PDT 2014

commit 5d7045343743889ccbfd3c1dfb20873e9efad024
Author: Sascha Wildner <saw at>
Date:   Wed May 21 21:11:54 2014 +0200

    libc: Fix strcasecmp_l() and strncasecmp_l() issues.
    POSIX.1-2008 specifies that those two functions should be declared by
    including <strings.h>, not <string.h> (the latter only has strcoll_l()
    and strxfrm_l()):
    It looks like FreeBSD got this wrong in their xlocale stuff originally.
    And it looks like the only clean way to properly solve it is to split
    <xlocale/_string.h> into <xlocale/_string.h> and <xlocale/_strings.h>,
    which this commit does.

Summary of changes:
 include/strings.h                         |  4 ++++
 include/xlocale/Makefile                  |  2 +-
 include/xlocale/_string.h                 |  2 --
 include/xlocale/{_string.h => _strings.h} | 23 +++++------------------
 4 files changed, 10 insertions(+), 21 deletions(-)
 copy include/xlocale/{_string.h => _strings.h} (76%)

DragonFly BSD source repository

More information about the Commits mailing list