aboutsummaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/dbm/extconf.rb2
-rw-r--r--ext/gdbm/gdbm.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/ext/dbm/extconf.rb b/ext/dbm/extconf.rb
index e67ede88f5..7f59ebd218 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)
- $CFLAGS += " " + hsearch + "-DDBM_HDR='<"+hdr+">'"
+ $CFLAGS += " " + hsearch + '-DDBM_HDR="<'+hdr+'>"'
return true
end
end
diff --git a/ext/gdbm/gdbm.c b/ext/gdbm/gdbm.c
index 143449c21b..edbd976231 100644
--- a/ext/gdbm/gdbm.c
+++ b/ext/gdbm/gdbm.c
@@ -65,6 +65,8 @@ fgdbm_close(obj)
return Qnil;
}
+static VALUE fgdbm_s_alloc _((VALUE));
+
static VALUE
fgdbm_s_alloc(klass)
VALUE klass;
@@ -511,6 +513,8 @@ fgdbm_invert(obj)
return hash;
}
+static VALUE each_pair _((VALUE));
+
static VALUE
each_pair(obj)
VALUE obj;