netbsd: updated to link against the right setlocale function. the renaming from __setlocale_mb_len_max_32 to __setlocale50 occured in NetBSD include/locale.h in rev 1.17, which was in 2010, and shipped in NetBSD 6 in 2012.

git-svn-id: trunk@43118 -
(cherry picked from commit 7f0675d937)
This commit is contained in:
Károly Balogh 2019-10-04 11:28:10 +00:00 committed by Pierre Muller
parent 2a33e47277
commit ad0f8099d5

View File

@ -86,7 +86,7 @@ function strcoll (__s1:pchar; __s2:pchar):cint;cdecl;external clib name 'strcoll
{$ifdef netbsd}
{ NetBSD has a new setlocale function defined in /usr/include/locale.h
that should be used }
function setlocale(category: cint; locale: pchar): pchar; cdecl; external clib name '__setlocale_mb_len_max_32';
function setlocale(category: cint; locale: pchar): pchar; cdecl; external clib name '__setlocale50';
{$else}
function setlocale(category: cint; locale: pchar): pchar; cdecl; external clib name 'setlocale';
{$endif}