1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-05 16:55:50 +03:00

Fixed all the #if APR_HAS_SHARED_MEMORY checks within the LDAP

module code to follow APR.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90338 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Graham Leggett
2001-08-18 19:44:59 +00:00
parent 0862fbcad8
commit e32f5c9e03
4 changed files with 10 additions and 10 deletions

View File

@@ -114,7 +114,7 @@ static const int primes[] =
void util_ald_free(const void *ptr)
{
#ifdef APU_HAS_LDAP_SHARED_CACHE
#if APR_HAS_SHARED_MEMORY
if (util_ldap_shm) {
apr_shm_free(util_ldap_shm, (void *)ptr);
} else {
@@ -127,7 +127,7 @@ void util_ald_free(const void *ptr)
void *util_ald_alloc(int size)
{
#ifdef APU_HAS_LDAP_SHARED_CACHE
#if APR_HAS_SHARED_MEMORY
if (util_ldap_shm) {
return (void *)apr_shm_malloc(util_ldap_shm, size);
} else {
@@ -140,7 +140,7 @@ void *util_ald_alloc(int size)
const char *util_ald_strdup(const char *s)
{
#ifdef APU_HAS_LDAP_SHARED_CACHE
#if APR_HAS_SHARED_MEMORY
if (util_ldap_shm) {
char *buf = apr_shm_malloc(util_ldap_shm, strlen(s)+1);
if (buf) {