Patches for DB version 2.0.2

  1. Problem: The file examples/ex_access.c won't compile.
    Apply the following patch to the examples/ex_access.c file.  
    *** examples/ex_access.c.orig   Wed Dec 31 19:00:00 1969
    --- examples/ex_access.c        Mon Apr 14 07:19:11 1997
    ***************
    *** 128,134 ****
                    fprintf(stderr, "ex_access: get: %s\n", strerror(errno));
      
            (void)dbcp->c_close(dbcp);
    !       (void)dbp->c_close(dbp, 0);
      
            return (db_appexit(dbenv));
      }
    --- 128,134 ----
                    fprintf(stderr, "ex_access: get: %s\n", strerror(errno));
      
            (void)dbcp->c_close(dbcp);
    !       (void)dbp->close(dbp, 0);
      
            return (db_appexit(dbenv));
      }
    ***************
    *** 145,158 ****
            
            /* Rely on calloc to initialize the structure. */
            if ((dbenv = (DB_ENV *)calloc(sizeof(DB_ENV), 1)) == NULL) {
    !               fprintf(stderr, "ex_access: %s", strerror(ENOMEM));
                    exit (1);
            }
            dbenv->db_errfile = stderr;
            dbenv->db_errpfx = "ex_access";
      
            if ((errno = db_appinit(home, NULL, dbenv, 0)) != 0) {
    !               fprintf(stderr, "ex_access: db_appinit: %s", strerror(errno));
                    exit (1);
            }
            return (dbenv);
    --- 145,158 ----
            
            /* Rely on calloc to initialize the structure. */
            if ((dbenv = (DB_ENV *)calloc(sizeof(DB_ENV), 1)) == NULL) {
    !               fprintf(stderr, "ex_access: %s\n", strerror(ENOMEM));
                    exit (1);
            }
            dbenv->db_errfile = stderr;
            dbenv->db_errpfx = "ex_access";
      
            if ((errno = db_appinit(home, NULL, dbenv, 0)) != 0) {
    !               fprintf(stderr, "ex_access: db_appinit: %s\n", strerror(errno));
                    exit (1);
            }
            return (dbenv);
    
  2. Problem: The file db_dump185/db_dump185.c won't compile on some machines.
    Apply the following patch to the db_dump185/db_dump185.c file.  
    *** db_dump185/db_dump185.c.orig        Wed Dec 31 19:00:00 1969
    --- db_dump185/db_dump185.c     Tue Apr 15 15:47:58 1997
    ***************
    *** 25,32 ****
      #include <string.h>
      #endif
      
    - #include "../clib/extern.h"
    - 
      /*
       * XXX
       * Don't include <db.h>, we have no idea where it lives and we can't use
    --- 25,30 ----
    ***************
    *** 52,57 ****
    --- 50,57 ----
      #define       const
      #define       __P(protos)     ()              /* K&R C preprocessor */
      #endif
    + 
    + #include "../clib/extern.h"
      
      /* Key/data structure -- a Data-Base Thang. */
      typedef struct {
    

In-Memory Replay Banner