From eb9bb9bf8049522230a0654c3f32e6373b945254 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 7 Aug 2024 17:05:13 -0700 Subject: [PATCH] Default to GNU/Linux dev_t etc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * configure.ac (dev_t, ino_t, major_t, minor_t): Default to GNU/Linux types. This shouldn’t affect behavior; it’s just a cleanup. --- configure.ac | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index af6f6918..38b34529 100644 --- a/configure.ac +++ b/configure.ac @@ -82,12 +82,16 @@ AC_TYPE_MODE_T AC_TYPE_PID_T AC_TYPE_OFF_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.])) -AC_CHECK_TYPE(dev_t, unsigned) -AC_CHECK_TYPE(ino_t, unsigned) + +# 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]) + +# 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]) gt_TYPE_SSIZE_T