diff --git a/Rakefile b/Rakefile index 4175983..941aca8 100644 --- a/Rakefile +++ b/Rakefile @@ -4,7 +4,7 @@ task :default => :test # Packaging # ========================================================== -GEMSPEC = eval(File.read('posix-spawn.gemspec')) +GEMSPEC = eval(File.read('posix-spawn.gemspec'), binding, __FILE__, __LINE__) require 'rubygems/package_task' Gem::PackageTask.new(GEMSPEC) do |pkg| diff --git a/ext/posix-spawn.c b/ext/posix-spawn.c index 7ff2464..cf1be2c 100644 --- a/ext/posix-spawn.c +++ b/ext/posix-spawn.c @@ -196,8 +196,9 @@ posixspawn_file_actions_addopen(VALUE key, VALUE val, posix_spawn_file_actions_t * if not. */ static int -posixspawn_file_actions_operations_iter(VALUE key, VALUE val, posix_spawn_file_actions_t *fops) +posixspawn_file_actions_operations_iter(VALUE key, VALUE val, VALUE fops_value) { + posix_spawn_file_actions_t *fops = (posix_spawn_file_actions_t *)fops_value; int act; act = posixspawn_file_actions_addclose(key, val, fops);