aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/ext/grpc/rb_server_credentials.c
diff options
context:
space:
mode:
authorGravatar Tim Emiola <temiola@google.com>2015-11-11 15:58:44 -0800
committerGravatar Tim Emiola <temiola@google.com>2015-11-12 16:24:13 -0800
commit9161a82565a0bdaf4622f7f8c8e967d29e904a9c (patch)
tree9fb3fb67cf41eb556955aa22ec79f400b3a2de91 /src/ruby/ext/grpc/rb_server_credentials.c
parentc8bd16b7e14f81c7c6e8be7817ed86b53c4c2cc9 (diff)
Corrects compile error on ruby 2.0
Diffstat (limited to 'src/ruby/ext/grpc/rb_server_credentials.c')
-rw-r--r--src/ruby/ext/grpc/rb_server_credentials.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ruby/ext/grpc/rb_server_credentials.c b/src/ruby/ext/grpc/rb_server_credentials.c
index ea4d0d864e..de57585e0b 100644
--- a/src/ruby/ext/grpc/rb_server_credentials.c
+++ b/src/ruby/ext/grpc/rb_server_credentials.c
@@ -91,7 +91,9 @@ static const rb_data_type_t grpc_rb_server_credentials_data_type = {
{grpc_rb_server_credentials_mark, grpc_rb_server_credentials_free,
GRPC_RB_MEMSIZE_UNAVAILABLE, {NULL, NULL}},
NULL, NULL,
+#ifdef RUBY_TYPED_FREE_IMMEDIATELY
RUBY_TYPED_FREE_IMMEDIATELY
+#endif
};
/* Allocates ServerCredential instances.