We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 001ad5e commit 3687647Copy full SHA for 3687647
ext/opcache/shared_alloc_mmap.c
@@ -23,6 +23,10 @@
23
24
#ifdef USE_MMAP
25
26
+#if defined(__linux__)
27
+# include "ZendAccelerator.h" // for MAXPATHLEN
28
+#endif
29
+
30
#include <sys/types.h>
31
#include <sys/stat.h>
32
#include <stdio.h>
@@ -38,6 +42,10 @@
38
42
#include <sys/procctl.h>
39
43
#endif
40
44
45
+#if defined(__FreeBSD__) || (defined(HAVE_PROCCTL) && defined(PROC_WXMAP_CTL))
46
+# include <unistd.h> // for getpid()
47
48
41
49
#if defined(MAP_ANON) && !defined(MAP_ANONYMOUS)
50
# define MAP_ANONYMOUS MAP_ANON
51
0 commit comments