summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/streams/mmap.c2
-rw-r--r--main/streams/php_stream_mmap.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/main/streams/mmap.c b/main/streams/mmap.c
index 4c9316fe6f..04427ed5c4 100644
--- a/main/streams/mmap.c
+++ b/main/streams/mmap.c
@@ -22,7 +22,7 @@
#include "php.h"
#include "php_streams_int.h"
-PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mmap_operation_t mode, size_t *mapped_len)
+PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mmap_access_t mode, size_t *mapped_len)
{
php_stream_mmap_range range;
diff --git a/main/streams/php_stream_mmap.h b/main/streams/php_stream_mmap.h
index 009cd1f851..e912a5593e 100644
--- a/main/streams/php_stream_mmap.h
+++ b/main/streams/php_stream_mmap.h
@@ -67,7 +67,7 @@ typedef struct {
#define php_stream_mmap_possible(stream) (!php_stream_is_filtered((stream)) && php_stream_mmap_supported((stream)))
BEGIN_EXTERN_C()
-PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mmap_operation_t mode, size_t *mapped_len);
+PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mmap_access_t mode, size_t *mapped_len);
#define php_stream_mmap_range(stream, offset, length, mode, mapped_len) _php_stream_mmap_range((stream), (offset), (length), (mode), (mapped_len))
/* un-maps the last mapped range */