From 0cb02efd0e2e2c80667863fd404d1fad7c63bb1f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 12 Jun 2010 18:32:12 +0000 Subject: http: fix rb_str_set_len() define for 1.8.6 --- ext/unicorn_http/ext_help.h | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/unicorn_http/ext_help.h b/ext/unicorn_http/ext_help.h index cc157cb..3aa24a8 100644 --- a/ext/unicorn_http/ext_help.h +++ b/ext/unicorn_http/ext_help.h @@ -22,6 +22,7 @@ static void rb_18_str_set_len(VALUE str, long len) RSTRING(str)->len = len; RSTRING(str)->ptr[len] = '\0'; } +# define rb_str_set_len(str,len) rb_18_str_set_len(str,len) #endif /* !defined(HAVE_RB_STR_SET_LEN) */ /* not all Ruby implementations support frozen objects (Rubinius does not) */ -- cgit v1.2.3-24-ge0c7