diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | m4/selinux-selinux-h.m4 | 4 |
2 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,10 @@ +2023-04-15 Bruno Haible <bruno@clisp.org> + + selinux-h: Fix compilation error (regression 2023-04-13). + * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Instead of + defining the C macro HAVE_SELINUX_SELINUX_H to 0, set the Autoconf + variable HAVE_SELINUX_SELINUX_H to 0. + 2023-04-14 Bruno Haible <bruno@clisp.org> year2038: Fix configure failure on 32-bit mingw. diff --git a/m4/selinux-selinux-h.m4 b/m4/selinux-selinux-h.m4 index 7028248c71..734924cc0d 100644 --- a/m4/selinux-selinux-h.m4 +++ b/m4/selinux-selinux-h.m4 @@ -20,7 +20,6 @@ AC_DEFUN([gl_HEADERS_SELINUX_SELINUX_H], else HAVE_SELINUX_SELINUX_H=0 fi - AC_SUBST([HAVE_SELINUX_SELINUX_H]) if test "$ac_cv_header_selinux_selinux_h" = yes; then # We do have <selinux/selinux.h>, so do compile getfilecon.c @@ -44,8 +43,9 @@ AC_DEFUN([gl_HEADERS_SELINUX_SELINUX_H], else # Do as if <selinux/selinux.h> does not exist, even if # AC_CHECK_HEADERS_ONCE has already determined that it exists. - AC_DEFINE([HAVE_SELINUX_SELINUX_H], [0]) + HAVE_SELINUX_SELINUX_H=0 fi + AC_SUBST([HAVE_SELINUX_SELINUX_H]) ]) AC_DEFUN([gl_LIBSELINUX], |