summaryrefslogtreecommitdiff
path: root/ext/standard/file.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-09-12 20:36:48 +0000
committerZeev Suraski <zeev@php.net>1999-09-12 20:36:48 +0000
commit9e3315799c3a654360d432459f3b0c7d152ea4ec (patch)
tree7de0bbc632da2ce0e65e358e8bd6ff3e5ca5108c /ext/standard/file.c
parent5f1793e21cdca5db1e5bdbc9043e8f9ceeef71d9 (diff)
downloadphp-git-9e3315799c3a654360d432459f3b0c7d152ea4ec.tar.gz
That's important enough to be cached
Diffstat (limited to 'ext/standard/file.c')
-rw-r--r--ext/standard/file.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c
index b18d742970..930f05667b 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -79,6 +79,10 @@ extern int fclose();
#include <sys/mman.h>
#endif
+#ifndef MAP_FAILED
+#define MAP_FAILED ((void *) -1)
+#endif
+
static void _php3_closesocket(int *);
#ifndef THREAD_SAFE