summaryrefslogtreecommitdiff
path: root/databases/ruby-pg/patches/patch-ext_extconf.rb
blob: d30aaae09035a47043ae565588f468f13d0bce56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-ext_extconf.rb,v 1.1 2016/03/18 13:18:53 fhajny Exp $

Fix SunOS build with Ruby 2.3.

Upstream bug report:
https://bitbucket.org/ged/ruby-pg/issues/236

--- ext/extconf.rb.orig	2016-03-18 12:46:37.072825799 +0000
+++ ext/extconf.rb
@@ -1,6 +1,7 @@
 require 'pp'
 require 'mkmf'
 
+$CPPFLAGS << ' -D__EXTENSIONS__'
 
 if ENV['MAINTAINER_MODE']
 	$stderr.puts "Maintainer mode enabled."