From ebbff2266aad54d9e485f529749dd536ec15af80 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sun, 1 Sep 2024 12:43:27 +0300 Subject: [PATCH] configure.ac: default to GNU/Linux dev_t, ino_t, major_t, minor_t. This shouldn't affect behavior; it's just a cleanup. Sync with GNU tar eb9bb9bf8049522230a0654c3f32e6373b945254. Signed-off-by: Andrew Borodin --- configure.ac | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index e34b3406b..012fbd3fb 100644 --- a/configure.ac +++ b/configure.ac @@ -262,8 +262,14 @@ AC_TYPE_MODE_T gl_PROMOTED_TYPE_MODE_T AC_TYPE_PID_T AC_TYPE_UID_T -AC_CHECK_TYPE([major_t], [], [AC_DEFINE([major_t], [int], [Type of major device numbers.])]) -AC_CHECK_TYPE([minor_t], [], [AC_DEFINE([minor_t], [int], [Type of minor device numbers.])]) + +dnl Taken from GNU/Linux, and should be good enough on platforms lacking these types. +AC_CHECK_TYPE([dev_t], [unsigned long long int]) +AC_CHECK_TYPE([ino_t], [unsigned long long int]) + +dnl Taken from GNU/Linux, and should be good enough on platforms lacking these types. +AC_CHECK_TYPE([major_t], [unsigned int]) +AC_CHECK_TYPE([minor_t], [unsigned int]) AC_STRUCT_ST_BLOCKS AC_CHECK_MEMBERS([struct stat.st_blksize, struct stat.st_rdev, struct stat.st_mtim, struct stat.st_mtimespec, struct stat.st_mtimensec])