mirror of
https://git.freebsd.org/ports.git
synced 2025-05-14 08:11:50 -04:00
- Pet portlint: fix diff header of patch files - Convert to options target helper With hat: ruby
18 lines
944 B
C
18 lines
944 B
C
--- src/bdb.c.orig 2011-04-06 19:35:39 UTC
|
|
+++ src/bdb.c
|
|
@@ -166,11 +166,10 @@
|
|
rb_raise(rb_eNameError, "module already defined");
|
|
}
|
|
version = rb_tainted_str_new2(db_version(&major, &minor, &patch));
|
|
- if (major != DB_VERSION_MAJOR || minor != DB_VERSION_MINOR
|
|
- || patch != DB_VERSION_PATCH) {
|
|
- rb_raise(rb_eNotImpError, "\nBDB needs compatible versions of libdb & db.h\n\tyou have db.h version %d.%d.%d and libdb version %d.%d.%d\n",
|
|
- DB_VERSION_MAJOR, DB_VERSION_MINOR, DB_VERSION_PATCH,
|
|
- major, minor, patch);
|
|
+ if (major != DB_VERSION_MAJOR || minor != DB_VERSION_MINOR) {
|
|
+ rb_raise(rb_eNotImpError, "\nBDB needs compatible versions of libdb & db.h\n\tyou have db.h version %d.%d and libdb version %d.%d\n",
|
|
+ DB_VERSION_MAJOR, DB_VERSION_MINOR,
|
|
+ major, minor);
|
|
}
|
|
bdb_mMarshal = rb_const_get(rb_cObject, rb_intern("Marshal"));
|
|
bdb_id_current_db = rb_intern("__bdb_current_db__");
|