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 apr_dbm_gdbm.c apr_dbm_sdbm.c
Date Thu, 08 Nov 2001 19:46:44 GMT
jerenkrantz    01/11/08 11:46:44

  Modified:    dbm      apr_dbm_berkeleydb.c apr_dbm_gdbm.c apr_dbm_sdbm.c
  Log:
  We are calling abort(), so we should include stdlib.h.
  
  Revision  Changes    Path
  1.5       +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.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- apr_dbm_berkeleydb.c	2001/11/07 01:24:54	1.4
  +++ apr_dbm_berkeleydb.c	2001/11/08 19:46:44	1.5
  @@ -54,6 +54,10 @@
   
   #include "apr_dbm_private.h"
   
  +#if APR_HAVE_STDLIB_H
  +#include <stdlib.h> /* for abort() */
  +#endif
  +
   /*
    * We pick up all varieties of Berkeley DB through db.h (included through
    * apu_select_dbm.h). This code has been compiled/tested against DB1,
  
  
  
  1.5       +3 -1      apr-util/dbm/apr_dbm_gdbm.c
  
  Index: apr_dbm_gdbm.c
  ===================================================================
  RCS file: /home/cvs/apr-util/dbm/apr_dbm_gdbm.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- apr_dbm_gdbm.c	2001/11/07 01:24:54	1.4
  +++ apr_dbm_gdbm.c	2001/11/08 19:46:44	1.5
  @@ -55,7 +55,9 @@
   #include "apr_dbm_private.h"
   
   #include <gdbm.h>
  -#include <stdlib.h>     /* for free() */
  +#if APR_HAVE_STDLIB_H
  +#include <stdlib.h> /* for free() and abort() */
  +#endif
   
   typedef GDBM_FILE real_file_t;
   
  
  
  
  1.4       +3 -1      apr-util/dbm/apr_dbm_sdbm.c
  
  Index: apr_dbm_sdbm.c
  ===================================================================
  RCS file: /home/cvs/apr-util/dbm/apr_dbm_sdbm.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- apr_dbm_sdbm.c	2001/11/07 01:24:54	1.3
  +++ apr_dbm_sdbm.c	2001/11/08 19:46:44	1.4
  @@ -54,8 +54,10 @@
   
   #include "apr_dbm_private.h"
   
  -
   #include "apr_sdbm.h"
  +#if APR_HAVE_STDLIB_H
  +#include <stdlib.h>  /* For abort() */
  +#endif
   
   typedef apr_sdbm_t *real_file_t;
   
  
  
  

Mime
View raw message