diff --git a/Rakefile b/Rakefile index 3cfb8158..e0ebbd6e 100644 --- a/Rakefile +++ b/Rakefile @@ -29,7 +29,7 @@ verbose true ##### Configuration # Don't forget to edit Configuration.h too -PACKAGE_VERSION = "2.0.5" +PACKAGE_VERSION = "2.0.6" OPTIMIZE = ["yes", "on", "true"].include?(ENV['OPTIMIZE']) include PlatformInfo diff --git a/ext/apache2/Configuration.h b/ext/apache2/Configuration.h index e4f80793..52e44908 100644 --- a/ext/apache2/Configuration.h +++ b/ext/apache2/Configuration.h @@ -31,7 +31,7 @@ */ /** Module version number. */ -#define PASSENGER_VERSION "2.0.5" +#define PASSENGER_VERSION "2.0.6" #ifdef __cplusplus #include diff --git a/ext/apache2/Exceptions.h b/ext/apache2/Exceptions.h index fd10dd87..fc55f52b 100644 --- a/ext/apache2/Exceptions.h +++ b/ext/apache2/Exceptions.h @@ -23,6 +23,7 @@ #include #include #include +#include /** * @defgroup Exceptions Exceptions diff --git a/ext/passenger/native_support.c b/ext/passenger/native_support.c index 63031148..fba78118 100644 --- a/ext/passenger/native_support.c +++ b/ext/passenger/native_support.c @@ -26,6 +26,9 @@ #include #define MIN(a, b) (((a) < (b)) ? (a) : (b)) +#ifndef RARRAY_LEN + #define RARRAY_LEN(ary) RARRAY(ary)->len +#endif static VALUE mPassenger; static VALUE mNativeSupport; diff --git a/lib/passenger/spawn_manager.rb b/lib/passenger/spawn_manager.rb index 70604836..d450096b 100644 --- a/lib/passenger/spawn_manager.rb +++ b/lib/passenger/spawn_manager.rb @@ -71,7 +71,11 @@ def initialize # Commonly used libraries. ['mysql', 'sqlite3'].each do |lib| - require lib + begin + require lib + rescue LoadError + # Do nothing; ignore if not present. + end end end end