Return-Path: Delivered-To: apmail-apache-cvs-archive@apache.org Received: (qmail 46589 invoked by uid 500); 1 Jun 2000 06:59:32 -0000 Mailing-List: contact apache-cvs-help@apache.org; run by ezmlm Precedence: bulk X-No-Archive: yes Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list apache-cvs@apache.org Received: (qmail 46578 invoked by uid 500); 1 Jun 2000 06:59:31 -0000 Delivered-To: apmail-apache-2.0-cvs@apache.org Date: 1 Jun 2000 06:59:31 -0000 Message-ID: <20000601065931.46574.qmail@locus.apache.org> From: ronald@locus.apache.org To: apache-2.0-cvs@apache.org Subject: cvs commit: apache-2.0/src/modules/standard mod_auth_digest.c ronald 00/05/31 23:59:31 Modified: src/modules/standard mod_auth_digest.c Log: don't include apr_shmem.h when APR_HAS_SHARED_MEMORY is false, but instead set up our own dummies Revision Changes Path 1.18 +37 -1 apache-2.0/src/modules/standard/mod_auth_digest.c Index: mod_auth_digest.c =================================================================== RCS file: /home/cvs/apache-2.0/src/modules/standard/mod_auth_digest.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- mod_auth_digest.c 2000/05/29 08:57:18 1.17 +++ mod_auth_digest.c 2000/06/01 06:59:31 1.18 @@ -113,8 +113,44 @@ #include "ap_base64.h" #include "apr_time.h" #include "apr_errno.h" -#include "apr_shmem.h" #include "apr_lock.h" + + +#if APR_HAS_SHARED_MEMORY +#include "apr_shmem.h" +#else +/* just provide dummies - the code does run-time checks anyway */ +typedef void ap_shmem_t; +typedef void ap_shm_name_t; + +ap_status_t ap_shm_init(ap_shmem_t **m, ap_size_t reqsize, const char *file, ap_pool_t *cont) { + return APR_ENOTIMPL; +} +ap_status_t ap_shm_destroy(ap_shmem_t *m) { + return APR_ENOTIMPL; +} +void *ap_shm_malloc(ap_shmem_t *c, ap_size_t reqsize) { + return NULL; +} +void *ap_shm_calloc(ap_shmem_t *shared, ap_size_t size) { + return NULL; +} +ap_status_t ap_shm_free(ap_shmem_t *shared, void *free) { + return APR_ENOTIMPL; +} +ap_status_t ap_get_shm_name(ap_shmem_t *c, ap_shm_name_t **name) { + return APR_ENOTIMPL; +} +ap_status_t ap_set_shm_name(ap_shmem_t *c, ap_shm_name_t *name) { + return APR_ENOTIMPL; +} +ap_status_t ap_open_shmem(ap_shmem_t *c) { + return APR_ENOTIMPL; +} +ap_status_t ap_shm_avail(ap_shmem_t *c, ap_size_t *avail) { + return APR_ENOTIMPL; +} +#endif /* struct to hold the configuration info */