]> granicus.if.org Git - sudo/commitdiff
Remove configure checks for dev_t, id_t, ino_t, ptrdiff_t, size_t
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 28 Apr 2016 21:09:46 +0000 (15:09 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 28 Apr 2016 21:09:46 +0000 (15:09 -0600)
and ssize_t.  These have been specified by either ANSI C or POSIX
for long enough that if the system doesn't support them, it is
unlikely to be able to compile sudo anyway.

config.h.in
configure
configure.ac

index b71d9cdb42026ce379f8cf6db0cbe536bb920a15..b3311e922aea9db3ba2f15e41a7b966072b7c7c2 100644 (file)
 /* Define to empty if `const' does not conform to ANSI C. */
 #undef const
 
-/* Define to `int' if <sys/types.h> does not define. */
-#undef dev_t
-
 /* Define to `int' if <sys/types.h> does not define. */
 #undef errno_t
 
 /* Define to `int' if <sys/types.h> doesn't define. */
 #undef gid_t
 
-/* Define to `unsigned int' if <sys/types.h> does not define. */
-#undef id_t
-
 /* Define to `__inline__' or `__inline' if that's what the C compiler
    calls it, or to nothing if 'inline' is not supported under any name.  */
 #ifndef __cplusplus
 #undef inline
 #endif
 
-/* Define to `unsigned int' if <sys/types.h> does not define. */
-#undef ino_t
-
 /* Define to `long long' if <sys/types.h> does not define. */
 #undef intmax_t
 
 /* Define to an OS-specific initialization function or `os_init_common'. */
 #undef os_init
 
-/* Define to `long' if <sys/types.h> does not define. */
-#undef ptrdiff_t
-
 /* Define to `size_t' if <sys/types.h> does not define. */
 #undef rsize_t
 
 /* Define to `unsigned int' if <sys/socket.h> doesn't define. */
 #undef socklen_t
 
-/* Define to `int' if <sys/types.h> does not define. */
-#undef ssize_t
-
 /* Define to `int' if <sys/types.h> doesn't define. */
 #undef uid_t
 
index 04cb265009fa24e67608bf766e5b96e9828c22e0..0a1a0b2362b14b222920ba7180cef664413c5b27 100755 (executable)
--- a/configure
+++ b/configure
@@ -17484,72 +17484,6 @@ $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
 if test X"$ac_cv_type_long_long_int" != X"yes"; then
     as_fn_error $? "\"C compiler does not appear to support the long long int type\"" "$LINENO" 5
 fi
-ac_fn_c_check_type "$LINENO" "id_t" "ac_cv_type_id_t" "$ac_includes_default"
-if test "x$ac_cv_type_id_t" = xyes; then :
-
-else
-
-cat >>confdefs.h <<_ACEOF
-#define id_t unsigned int
-_ACEOF
-
-fi
-
-ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
-if test "x$ac_cv_type_size_t" = xyes; then :
-
-else
-
-cat >>confdefs.h <<_ACEOF
-#define size_t unsigned int
-_ACEOF
-
-fi
-
-ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
-if test "x$ac_cv_type_ssize_t" = xyes; then :
-
-else
-
-cat >>confdefs.h <<_ACEOF
-#define ssize_t int
-_ACEOF
-
-fi
-
-ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
-if test "x$ac_cv_type_dev_t" = xyes; then :
-
-else
-
-cat >>confdefs.h <<_ACEOF
-#define dev_t int
-_ACEOF
-
-fi
-
-ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
-if test "x$ac_cv_type_ino_t" = xyes; then :
-
-else
-
-cat >>confdefs.h <<_ACEOF
-#define ino_t unsigned int
-_ACEOF
-
-fi
-
-ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
-if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
-
-else
-
-cat >>confdefs.h <<_ACEOF
-#define ptrdiff_t long
-_ACEOF
-
-fi
-
 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
 if test "x$ac_cv_type_intmax_t" = xyes; then :
 
index bb2ba26992dd8075dd7619a8810a96df21b08ca7..263b7aad3c3c187a7d0f3d428ce7ba4cc459bd59 100644 (file)
@@ -2328,12 +2328,6 @@ AC_TYPE_LONG_LONG_INT
 if test X"$ac_cv_type_long_long_int" != X"yes"; then
     AC_MSG_ERROR(["C compiler does not appear to support the long long int type"])
 fi
-AC_CHECK_TYPE(id_t, unsigned int)
-AC_CHECK_TYPE(size_t, unsigned int)
-AC_CHECK_TYPE(ssize_t, int)
-AC_CHECK_TYPE(dev_t, int)
-AC_CHECK_TYPE(ino_t, unsigned int)
-AC_CHECK_TYPE(ptrdiff_t, long)
 AC_CHECK_TYPE(intmax_t, long long)
 AC_CHECK_TYPE(uintmax_t, unsigned long long)
 AC_CHECK_TYPE(uint8_t, unsigned char)