diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-24 07:41:36 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-24 07:41:36 +0000 |
commit | 1a890d82c387d2902c22c9a5b86007281cfe86d2 (patch) | |
tree | e0c77d0e1ee5dec823f3f72040ef882c007f6f92 /ext | |
parent | 71c9abdd06bd07a6f8658a6f256b72afc813be2c (diff) | |
download | ruby-1a890d82c387d2902c22c9a5b86007281cfe86d2.tar.gz |
* lib/mkmf.rb (have_type): check if a type is defined.
* lib/mkmf.rb (check_sizeof): check size of a type.
* ext/dbm/extconf.rb: check if type DBM is defined.
[ruby-talk:76693]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/dbm/extconf.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dbm/extconf.rb b/ext/dbm/extconf.rb index 1fc443c280..5a67603e69 100644 --- a/ext/dbm/extconf.rb +++ b/ext/dbm/extconf.rb @@ -32,7 +32,7 @@ def db_check(db) if have_library(db, db_prefix("dbm_open")) || have_func(db_prefix("dbm_open")) for hdr in $dbm_conf_headers.fetch(db, ["ndbm.h"]) - if have_header(hdr.dup) + if have_header(hdr.dup) and have_type("DBM", hdr.dup, hsearch) $CFLAGS += " " + hsearch + '-DDBM_HDR="<'+hdr+'>"' return true end |