summaryrefslogtreecommitdiff
path: root/ext/dbm/extconf.rb
diff options
context:
space:
mode:
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 24b11b9bc6..26f799cc5b 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