ext/cproton/extconf.rb in qpid_proton-0.8 vs ext/cproton/extconf.rb in qpid_proton-0.9.0
- old
+ new
@@ -17,10 +17,14 @@
# under the License.
#
require 'mkmf'
+# set the ruby version compiler flag
+runtime_version = RUBY_VERSION.gsub(/\./,'')[0,2]
+$CFLAGS << " -DRUBY#{runtime_version}"
+
dir_config("qpid-proton")
REQUIRED_LIBRARIES = [
"qpid-proton",
]
@@ -31,10 +35,9 @@
REQUIRED_HEADERS = [
"proton/engine.h",
"proton/message.h",
"proton/sasl.h",
- "proton/driver.h",
"proton/messenger.h"
]
REQUIRED_HEADERS.each do |header|
abort "Missing header: #{header}" unless have_header header