You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jo...@apache.org on 2003/11/05 10:21:46 UTC
cvs commit: apr/shmem/unix shm.c
jorton 2003/11/05 01:21:46
Modified: shmem/unix shm.c
Log:
* shmem/unix/shm.c (apr_shm_create): Fix build with Tru64 "cc -std";
cast MAP_FAILED to (void *).
Revision Changes Path
1.22 +2 -2 apr/shmem/unix/shm.c
Index: shm.c
===================================================================
RCS file: /home/cvs/apr/shmem/unix/shm.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -u -r1.21 -r1.22
--- shm.c 6 Jan 2003 23:44:36 -0000 1.21
+++ shm.c 5 Nov 2003 09:21:46 -0000 1.22
@@ -178,7 +178,7 @@
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 @@
#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;
}