Skip to content

Commit

Permalink
Autotools: Remove union semun check
Browse files Browse the repository at this point in the history
The HAVE_SEMUN usage was removed via
fcf43c9 and the check is redundant at
this point.
  • Loading branch information
petk authored and nikic committed Sep 2, 2024
1 parent 2b299d6 commit 0cc6471
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -195,23 +195,6 @@ if test "$PHP_APCU" != "no"; then
fi

AC_CHECK_FUNCS(sigaction)
AC_CACHE_CHECK(for union semun, php_cv_semun,
[
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/sem.h>
]], [[union semun x; x.val=1]])],[
php_cv_semun=yes
],[
php_cv_semun=no
])
])
if test "$php_cv_semun" = "yes"; then
AC_DEFINE(HAVE_SEMUN, 1, [ ])
else
AC_DEFINE(HAVE_SEMUN, 0, [ ])
fi

AC_ARG_ENABLE([valgrind-checks],
[AS_HELP_STRING([--disable-valgrind-checks],
Expand Down

0 comments on commit 0cc6471

Please sign in to comment.