diff options
author | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2003-11-05 09:21:46 +0000 |
---|---|---|
committer | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2003-11-05 09:21:46 +0000 |
commit | c8f5e8423cf6eec6b2468b7412c13269dc82abae (patch) | |
tree | 8e1e7df8d7f67de8db378f828f0a3cb85b2faa1f /shmem/unix | |
parent | b720a07fc3c20dfbb9f99071930cee09effdf120 (diff) | |
download | libapr-c8f5e8423cf6eec6b2468b7412c13269dc82abae.tar.gz |
* shmem/unix/shm.c (apr_shm_create): Fix build with Tru64 "cc -std";
cast MAP_FAILED to (void *).
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64723 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'shmem/unix')
-rw-r--r-- | shmem/unix/shm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shmem/unix/shm.c b/shmem/unix/shm.c index dc1e9aad2..278ef2c3d 100644 --- a/shmem/unix/shm.c +++ b/shmem/unix/shm.c @@ -178,7 +178,7 @@ APR_DECLARE(apr_status_t) apr_shm_create(apr_shm_t **m, new_m->base = mmap(NULL, new_m->realsize, PROT_READ|PROT_WRITE, MAP_SHARED, tmpfd, 0); - if (new_m->base == MAP_FAILED) { + if (new_m->base == (void *)MAP_FAILED) { return errno; } @@ -200,7 +200,7 @@ APR_DECLARE(apr_status_t) apr_shm_create(apr_shm_t **m, #elif APR_USE_SHMEM_MMAP_ANON new_m->base = mmap(NULL, new_m->realsize, PROT_READ|PROT_WRITE, MAP_ANON|MAP_SHARED, -1, 0); - if (new_m->base == MAP_FAILED) { + if (new_m->base == (void *)MAP_FAILED) { return errno; } |