diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-09-12 05:37:38 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-09-12 05:37:38 +0000 |
commit | fbcc6dea0c86e7e4d087f1d4b2de19b211d16647 (patch) | |
tree | 68bde87194755712893e5efa4d7f9d2f5312df10 /ext/dbm | |
parent | 9d823983dc3e88cb7775c78908a4bb5133ad88ac (diff) |
matz: 1.6.0 final (hopufully)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dbm')
-rw-r--r-- | ext/dbm/dbm.c | 3 | ||||
-rw-r--r-- | ext/dbm/extconf.rb | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/ext/dbm/dbm.c b/ext/dbm/dbm.c index 87b364731e..b1564793d1 100644 --- a/ext/dbm/dbm.c +++ b/ext/dbm/dbm.c @@ -15,6 +15,9 @@ #ifdef HAVE_CDEFS_H # include <cdefs.h> #endif +#ifdef HAVE_SYS_CDEFS_H +# include <sys/cdefs.h> +#endif #include <ndbm.h> #include <fcntl.h> #include <errno.h> diff --git a/ext/dbm/extconf.rb b/ext/dbm/extconf.rb index 55dadc2601..9ce235a2b5 100644 --- a/ext/dbm/extconf.rb +++ b/ext/dbm/extconf.rb @@ -6,6 +6,7 @@ if have_library("gdbm", "dbm_open") end gdbm or have_library("db", "dbm_open") or have_library("dbm", "dbm_open") have_header("cdefs.h") +have_header("sys/cdefs.h") if have_header("ndbm.h") and have_func("dbm_open") have_func("dbm_clearerr") unless gdbm create_makefile("dbm") |