Ticket #4438: autoconf: fix C99 compatibility issue in mc_GET_FS_INFO check.

Include <fcntl.h> for the declaration of posix_fallocate.  This
avoids an implicit function declaration and build issues with future
compilers.

Signed-off-by: Florian Weimer <fweimer@redhat.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Florian Weimer 2023-02-05 18:38:37 +01:00 committed by Andrew Borodin
parent 29f513cf58
commit b7e4fb9ef6
1 changed files with 1 additions and 0 deletions

View File

@ -8,6 +8,7 @@ AC_DEFUN([gl_POSIX_FALLOCATE], [
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#define _XOPEN_SOURCE 600
#include <stdlib.h>
#include <fcntl.h>
#if defined(__GLIBC__) && (__GLIBC__ < 2 || __GLIBC_MINOR__ < 7)
possibly broken posix_fallocate
#endif