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 | edaf28a091dc77fc29d5e2af8341984cb42ab62f (patch) | |
| tree | e0c77d0e1ee5dec823f3f72040ef882c007f6f92 /ext/dbm | |
| parent | 0650469c59a558fdaca60ccf97e9b26fcfe7d88e (diff) | |
| download | ruby-edaf28a091dc77fc29d5e2af8341984cb42ab62f.tar.gz ruby-edaf28a091dc77fc29d5e2af8341984cb42ab62f.tar.xz ruby-edaf28a091dc77fc29d5e2af8341984cb42ab62f.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@4146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dbm')
| -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 1fc443c28..5a67603e6 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 |
