Skip to content

Commit

Permalink
merge #24 into openSUSE/catatonit:main
Browse files Browse the repository at this point in the history
Fabrice Fontaine (1):
  fix build with kernel < 5.9

Signed-off-by: Aleksa Sarai <[email protected]>
  • Loading branch information
cyphar committed Oct 4, 2023
2 parents d4092a9 + 65e1b96 commit 663ad16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion catatonit.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include <limits.h>
#include <dirent.h>

#ifdef HAVE_CLOSE_RANGE
#ifdef HAVE_LINUX_CLOSE_RANGE_H
# include <linux/close_range.h>
#else
# include <sys/syscall.h>
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ LT_PREREQ([2.4.2])
LT_INIT([disable-shared])

AC_CHECK_HEADERS([errno.h fcntl.h signal.h stdarg.h stdio.h stdlib.h unistd.h])
AC_CHECK_HEADERS([sys/prctl.h sys/signalfd.h sys/stat.h sys/types.h sys/wait.h])
AC_CHECK_HEADERS([linux/close_range.h sys/prctl.h sys/signalfd.h sys/stat.h sys/types.h sys/wait.h])

AC_CHECK_FUNCS([close_range])

Expand Down

0 comments on commit 663ad16

Please sign in to comment.