]> git.pld-linux.org Git - packages/nss_db.git/commitdiff
- apply fc patch: nss_db-2.2-glibc.patch:
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 22 Feb 2010 17:34:33 +0000 (17:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  Avoid macro expansion if open() is a macro.

  revision 1.1
  date: 2007/08/14 14:15:04;  author: nalin;  state: Exp;
  adapt to open-is-a-macro cases

Changed files:
    nss_db-db41.patch -> 1.2

nss_db-db41.patch

index 402116b28e47011b848ea52ad9e2281115bc965a..e341028911b911a0fd98c25f246491ae6b1623a8 100644 (file)
@@ -1,13 +1,14 @@
---- nss_db-2.2.3pre1/src/db-compat.c.orig      2001-04-30 03:07:41.000000000 +0200
-+++ nss_db-2.2.3pre1/src/db-compat.c   2004-04-02 23:57:06.562464288 +0200
+--- nss_db-2.2.3pre1/src/db-compat.c   2010-02-22 19:32:31.371616603 +0200
++++ nss_db-2.2.3pre1/src/db-compat.c   2010-02-22 19:32:31.371616603 +0200
 @@ -39,7 +39,11 @@
    if (err)
      return err;
  
+-  err = db->open (db, file, NULL, type, flags, mode);
 +#if (DB_VERSION_MAJOR > 4) || ((DB_VERSION_MAJOR == 4) && (DB_VERSION_MINOR >= 1))
-+  err = db->open (db, NULL, file, NULL, type, flags, mode);
++  err = (db->open) (db, NULL, file, NULL, type, flags, mode);
 +#else
-   err = db->open (db, file, NULL, type, flags, mode);
++  err = (db->open) (db, file, NULL, type, flags, mode);
 +#endif
    if (err)
      {
This page took 0.066311 seconds and 4 git commands to generate.