summaryrefslogtreecommitdiff
path: root/ext/dbm/extconf.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-19 14:02:14 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-19 14:02:14 +0000
commit95f3f9829f8a5e8ff29c5c6b26f1062c7cb23786 (patch)
tree052e99e7e986fa254c54710d666acd6e813e74f7 /ext/dbm/extconf.rb
parent87a15a6981b8c44c15667f01914e64add1348a6d (diff)
* ext/dbm/dbm.c (Init_dbm): refine DBM::VERSION definition.
* ext/dbm/extconf.rb: provide RUBYDBM_GDBM_HEADER macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dbm/extconf.rb')
-rw-r--r--ext/dbm/extconf.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/dbm/extconf.rb b/ext/dbm/extconf.rb
index 24b11b9..26f799c 100644
--- a/ext/dbm/extconf.rb
+++ b/ext/dbm/extconf.rb
@@ -173,6 +173,9 @@ def headers.db_check2(db, hdr)
end
have_gdbm_header_macro = have_gdbm_header_macro1 | have_gdbm_header_macro2
+ if have_gdbm_header_macro
+ $defs.push('-DRUBYDBM_GDBM_HEADER')
+ end
# ndbm.h is provided by the original (4.3BSD) dbm,
# Berkeley DB 1 in libc of 4.4BSD and