2
0
Эх сурвалжийг харах

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 7f0675d937af5822442aef9d69134a97fc98390b)
Károly Balogh 5 жил өмнө
parent
commit
ad0f8099d5

+ 1 - 1
rtl/unix/cwstring.pp

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