1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00

- fix build with ruby 1.9

This commit is contained in:
Dirk Meyer 2013-06-22 08:41:44 +00:00
parent 28e05afef8
commit c57370fb24
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=321555

View File

@ -1,6 +1,11 @@
--- rblocale.c.orig Fri Apr 14 08:20:58 2000
+++ rblocale.c Mon Jun 21 20:36:37 2004
@@ -31,6 +31,16 @@
--- rblocale.c.orig 2000-04-14 06:20:58.000000000 +0200
+++ rblocale.c 2013-06-21 12:52:36.000000000 +0200
@@ -27,10 +27,20 @@
{
char *ret;
- ret = setlocale(NUM2INT(category), locale == Qnil ? "" : STR2CSTR(locale));
+ ret = setlocale(NUM2INT(category), locale == Qnil ? "" : StringValuePtr(locale));
return ret == NULL ? Qnil : rb_str_new2(ret);
}