File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,7 @@ if test "$PHP_PHPDBG" != "no"; then
45
45
AC_MSG_RESULT ( [ disabled] )
46
46
fi
47
47
48
- AC_CACHE_CHECK ( [ for userfaultfd faulting on write-protected memory support] , ac_cv_phpdbg_userfaultfd_writefault , AC_COMPILE_IFELSE ( [ AC_LANG_SOURCE ( [ [
49
- #include <linux/userfaultfd.h>
50
- #ifndef UFFDIO_WRITEPROTECT_MODE_WP
51
- # error userfaults on write-protected memory not supported
52
- #endif
53
- ] ] ) ] , [ ac_cv_phpdbg_userfaultfd_writefault=yes] , [ ac_cv_phpdbg_userfaultfd_writefault=no] ) )
54
- if test "$ac_cv_phpdbg_userfaultfd_writefault" = "yes"; then
48
+ AC_CHECK_DECL ( [ UFFDIO_WRITEPROTECT_MODE_WP] , [
55
49
if test "$enable_zts" != "yes"; then
56
50
CFLAGS_SAVE="$CFLAGS"
57
51
LIBS_SAVE="$LIBS"
@@ -73,7 +67,7 @@ if test "$PHP_PHPDBG" != "no"; then
73
67
else
74
68
AC_DEFINE ( HAVE_USERFAULTFD_WRITEFAULT , 1 , [ Whether faulting on write-protected memory support can be compiled for userfaultfd] )
75
69
fi
76
- fi
70
+ ] ,, [ #include <linux/userfaultfd.h> ] )
77
71
78
72
PHP_SUBST(PHPDBG_EXTRA_LIBS)
79
73
You can’t perform that action at this time.
0 commit comments