mirror of
https://github.com/AuxXxilium/kmod.git
synced 2025-02-20 08:26:55 +07:00
kmod: configure.ac: In _Noreturn check, include <stdlib.h> for exit
Otherwise, an implicit functiona declaration is used, causing a C99 compatibility issue. Signed-off-by: Florian Weimer <fweimer@redhat.com> Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
This commit is contained in:
parent
6c5f2f1368
commit
035e6667d1
@ -68,7 +68,8 @@ AC_COMPILE_IFELSE(
|
||||
|
||||
AC_MSG_CHECKING([whether _Noreturn is supported])
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_SOURCE([[_Noreturn int foo(void) { exit(0); }]])],
|
||||
[AC_LANG_SOURCE([[#include <stdlib.h>
|
||||
_Noreturn int foo(void) { exit(0); }]])],
|
||||
[AC_DEFINE([HAVE_NORETURN], [1], [Define if _Noreturn is available])
|
||||
AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])])
|
||||
|
Loading…
Reference in New Issue
Block a user