Allow package to be build on any architecture (not just i386).
[php5-apc.git] / apc_mmap.c
index 8b9cccb..f29de88 100644 (file)
@@ -2,7 +2,7 @@
   +----------------------------------------------------------------------+
   | APC                                                                  |
   +----------------------------------------------------------------------+
-  | Copyright (c) 2006 The PHP Group                                     |
+  | Copyright (c) 2008 The PHP Group                                     |
   +----------------------------------------------------------------------+
   | This source file is subject to version 3.01 of the PHP license,      |
   | that is bundled with this package in the file LICENSE, and is        |
@@ -25,7 +25,7 @@
 
  */
 
-/* $Id: apc_mmap.c,v 3.7 2007/12/20 23:00:51 shire Exp $ */
+/* $Id: apc_mmap.c,v 3.7.2.2 2008/05/11 18:57:00 rasmus Exp $ */
 
 #include "apc.h"
 
@@ -114,7 +114,7 @@ void *apc_mmap(char *file_mask, size_t size)
             unlink(file_mask);
         }
     }
-    if((int)shmaddr == -1) {
+    if((long)shmaddr == -1) {
         apc_eprint("apc_mmap: mmap failed:");
     }
     return shmaddr;