apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject cvs commit: apr-util/dbm apr_dbm_berkeleydb.c
Date Thu, 29 Nov 2001 10:01:17 GMT
jerenkrantz    01/11/29 02:01:17

  Modified:    dbm      apr_dbm_berkeleydb.c
  Log:
  Allow us to compile with db1 (no db_strerror function there).
  
  Revision  Changes    Path
  1.9       +4 -0      apr-util/dbm/apr_dbm_berkeleydb.c
  
  Index: apr_dbm_berkeleydb.c
  ===================================================================
  RCS file: /home/cvs/apr-util/dbm/apr_dbm_berkeleydb.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- apr_dbm_berkeleydb.c	2001/11/29 08:15:45	1.8
  +++ apr_dbm_berkeleydb.c	2001/11/29 10:01:17	1.9
  @@ -227,7 +227,11 @@
           /* ### need to fix. dberr was tossed in db2s(). */
           /* ### use db_strerror() */
           dbm->errcode = dbm_said;
  +#if DB_VER == 1
  +        dbm->errmsg = NULL;
  +#else
           dbm->errmsg = db_strerror(dbm_said - APR_OS_START_USEERR);
  +#endif
           rv = dbm_said;
       }
   
  
  
  

Mime
View raw message