Revision
3748
Author
eloy.de.enige@gmail.com
Date
2010-03-12 17:07:03 -0800 (Fri, 12 Mar 2010)

Log Message

Make build green for us poor SL users

Modified Paths

Diff

Modified: MacRuby/trunk/ext/ripper/extconf.rb (3747 => 3748)


--- MacRuby/trunk/ext/ripper/extconf.rb	2010-03-13 00:51:58 UTC (rev 3747)
+++ MacRuby/trunk/ext/ripper/extconf.rb	2010-03-13 01:07:03 UTC (rev 3748)
@@ -16,6 +16,7 @@
   $defs << '-DRIPPER_DEBUG' if $debug
   $VPATH << '$(topdir)' << '$(top_srcdir)'
   $INCFLAGS << ' -I$(topdir) -I$(top_srcdir) -I$(top_srcdir)/onig'
+  $INCFLAGS << ' -I../../icu-1060' if `sw_vers -productVersion`.to_f <= 10.6
   $CFLAGS << ' -std=c99'
   create_makefile 'ripper'
 end

Modified: MacRuby/trunk/string.c (3747 => 3748)


--- MacRuby/trunk/string.c	2010-03-13 00:51:58 UTC (rev 3747)
+++ MacRuby/trunk/string.c	2010-03-13 01:07:03 UTC (rev 3748)
@@ -12,6 +12,7 @@
 #include <stdio.h>
 #include <stdarg.h>
 #include <wctype.h>
+#include <unistd.h>
 
 #include "ruby.h"
 #include "ruby/encoding.h"