RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Per Øyvind Karlsen
  Root:   /v/rpm/cvs                       Email:  pkarl...@rpm5.org
  Module: rpm                              Date:   15-Jan-2011 01:49:56
  Branch: HEAD                             Handle: 2011011500495200

  Modified files:
    rpm/rpmdb               tjfn.c

  Log:
    fix build with db 5.x

  Summary:
    Revision    Changes     Path
    1.10        +1  -1      rpm/rpmdb/tjfn.c
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/rpmdb/tjfn.c
  ============================================================================
  $ cvs diff -u -r1.9 -r1.10 tjfn.c
  --- rpm/rpmdb/tjfn.c  25 Dec 2008 22:24:37 -0000      1.9
  +++ rpm/rpmdb/tjfn.c  15 Jan 2011 00:49:52 -0000      1.10
  @@ -72,7 +72,7 @@
        goto err;
       }
   
  -#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1)
  +#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1) || (DB_VERSION_MAJOR == 
5)
       ret = (db->open)(db, NULL, dbfn, NULL, DB_BTREE, DB_CREATE, 0664);
   #else
       ret = (db->open)(db, dbfn, NULL, DB_BTREE, DB_CREATE, 0664);
  @@ .
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
CVS Sources Repository                                rpm-cvs@rpm5.org

Reply via email to