From: Paul Eggert Date: Thu, 8 Aug 2024 00:05:13 +0000 (-0700) Subject: Default to GNU/Linux dev_t etc X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eb9bb9bf8049522230a0654c3f32e6373b945254;p=thirdparty%2Ftar.git Default to GNU/Linux dev_t etc * 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. --- 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