summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-04-20 08:21:41 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-04-20 08:21:41 +0000
commitcc70bcf9038f0eac57ec1f0becd7b500fbad8686 (patch)
tree33b2a796b5669595baa3dc8abedbc30bf75204f4 /ext
parent2bcb001084e404a16de41f4270f0785ac2258f85 (diff)
to open CVS
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/dbm/extconf.rb2
-rw-r--r--ext/socket/socket.c3
2 files changed, 1 insertions, 4 deletions
diff --git a/ext/dbm/extconf.rb b/ext/dbm/extconf.rb
index 3a96cee12f..c499df97ad 100644
--- a/ext/dbm/extconf.rb
+++ b/ext/dbm/extconf.rb
@@ -3,7 +3,7 @@ $LDFLAGS = "-L/usr/local/lib"
have_library("gdbm", "dbm_open") or
have_library("db", "dbm_open") or
have_library("dbm", "dbm_open")
-if have_func("dbm_open")
+if have_header("ndbm.h") and have_func("dbm_open")
have_func("dbm_clearerr")
create_makefile("dbm")
end
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index bd9bae8921..21f21b384e 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -61,9 +61,6 @@ void SOCKSinit();
int Rconnect();
#endif
-FILE *rb_fdopen();
-char *strdup();
-
#define INET_CLIENT 0
#define INET_SERVER 1
#define INET_SOCKS 2