diff options
author | Ronald Tschalar <ronald@apache.org> | 2000-06-01 08:59:31 +0200 |
---|---|---|
committer | Ronald Tschalar <ronald@apache.org> | 2000-06-01 08:59:31 +0200 |
commit | 4fe948c5078514d53c007893f2ca1f67347c7978 (patch) | |
tree | 989ac93651408a32aa897e2be898f2b2e50965ba /modules/aaa/mod_auth_digest.c | |
parent | PR: (diff) | |
download | apache2-4fe948c5078514d53c007893f2ca1f67347c7978.tar.xz apache2-4fe948c5078514d53c007893f2ca1f67347c7978.zip |
don't include apr_shmem.h when APR_HAS_SHARED_MEMORY is false, but instead set up our own dummies
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85364 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/aaa/mod_auth_digest.c')
-rw-r--r-- | modules/aaa/mod_auth_digest.c | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/modules/aaa/mod_auth_digest.c b/modules/aaa/mod_auth_digest.c index 769270f2f4..f84182fa82 100644 --- a/modules/aaa/mod_auth_digest.c +++ b/modules/aaa/mod_auth_digest.c @@ -113,10 +113,46 @@ #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 */ typedef struct digest_config_struct { |