summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/curses/extconf.rb2
-rw-r--r--ext/dbm/extconf.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/curses/extconf.rb b/ext/curses/extconf.rb
index 0e824e3ca8..8e35876237 100644
--- a/ext/curses/extconf.rb
+++ b/ext/curses/extconf.rb
@@ -14,7 +14,7 @@ elsif have_header("curses_colr/curses.h") and have_library("cur_colr", "initscr"
make=true
else
have_library("termcap", "tgetent")
- if have_library("curses", "initscr")
+ if have_header("curses") and have_library("curses", "initscr")
make=true
end
end
diff --git a/ext/dbm/extconf.rb b/ext/dbm/extconf.rb
index 0e29eef0ce..51b1bfd81b 100644
--- a/ext/dbm/extconf.rb
+++ b/ext/dbm/extconf.rb
@@ -50,7 +50,7 @@ end
have_header("cdefs.h")
have_header("sys/cdefs.h")
-if have_func(db_prefix("dbm_open"))
+if /DBM_HDR/ =~ $CFLAGS and have_func(db_prefix("dbm_open"))
have_func(db_prefix("dbm_clearerr")) unless $dbm_conf_have_gdbm
create_makefile("dbm")
end