diff options
author | Joe Orton <jorton@apache.org> | 2003-11-05 09:21:46 +0000 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2003-11-05 09:21:46 +0000 |
commit | 6e5780baef0481374c056785237f84ee8c1f1e6a (patch) | |
tree | 8e1e7df8d7f67de8db378f828f0a3cb85b2faa1f | |
parent | c35d308075a3b57e6259848306fbb0ecbc2d0d60 (diff) | |
download | apr-6e5780baef0481374c056785237f84ee8c1f1e6a.tar.gz |
* shmem/unix/shm.c (apr_shm_create): Fix build with Tru64 "cc -std";
cast MAP_FAILED to (void *).
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64723 13f79535-47bb-0310-9956-ffa450edef68
-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; } |