com php-src: Enable Posix Shared Memory on Linux: ext/opcache/z end_shared_alloc.h
| From: | Dmitry Stogov | Date: | Fri, 01 Mar 2019 09:15:56 +0000 |
| Subject: | com php-src: Enable Posix Shared Memory on Linux: ext/opcache/z end_shared_alloc.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-104920@lists.php.net to get a copy of this message | ||
Commit: 7d5e2e532c2c3c1d5e249beced450bae7fa17fc3
Author: Dmitry Stogov <dmitry@zend.com> Fri, 1 Mar 2019 12:15:56 +0300
Parents: 54ef8d13d8c91f2bdd3c9a65871918efad370571
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7d5e2e532c2c3c1d5e249beced450bae7fa17fc3
Log:
Enable Posix Shared Memory on Linux
Changed paths:
M ext/opcache/zend_shared_alloc.h
Diff:
diff --git a/ext/opcache/zend_shared_alloc.h b/ext/opcache/zend_shared_alloc.h
index 37f278d..2a77dfb 100644
--- a/ext/opcache/zend_shared_alloc.h
+++ b/ext/opcache/zend_shared_alloc.h
@@ -33,6 +33,9 @@
# define USE_MMAP 1
# endif
#elif defined(__linux__) || defined(_AIX)
+# ifdef HAVE_SHM_MMAP_POSIX
+# define USE_SHM_OPEN 1
+# endif
# ifdef HAVE_SHM_IPC
# define USE_SHM 1
# endif