mirror of https://github.com/MidnightCommander/mc
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:
parent
29f513cf58
commit
b7e4fb9ef6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue