From 86743d987e939659654abae36211ea0806608888 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 14 Dec 2001 06:52:44 +0000 Subject: [PATCH] Add checks for volatile and sig_atomic_t --- config.h.in | 6 ++++++ configure.in | 3 +++ 2 files changed, 9 insertions(+) diff --git a/config.h.in b/config.h.in index 20f8372f4..440f3e7af 100644 --- a/config.h.in +++ b/config.h.in @@ -94,6 +94,9 @@ /* Define to `int' if doesn't define. */ #undef ssize_t +/* Define to `int' if doesn't define. */ +#undef sig_atomic_t + /* Define to `int' if doesn't define. */ #undef dev_t @@ -103,6 +106,9 @@ /* Define to be nil if C compiler doesn't support "const." */ #undef const +/* Define to be nil if C compiler doesn't support "volatile." */ +#undef volatile + /* Define if your compiler supports the "long long" type. */ #undef HAVE_LONG_LONG diff --git a/configure.in b/configure.in index 1fb8283cf..1fe28fbb9 100644 --- a/configure.in +++ b/configure.in @@ -1498,6 +1498,7 @@ dnl C compiler checks (to be done after os checks) dnl AC_PROG_GCC_TRADITIONAL AC_C_CONST +AC_C_VOLATILE dnl dnl Program checks dnl @@ -1532,6 +1533,8 @@ dnl typedef checks dnl AC_TYPE_MODE_T AC_TYPE_UID_T +AC_CHECK_TYPES([sig_atomic_t], , [AC_DEFINE(sig_atomic_t, int)], [#include +#include ]) SUDO_TYPE_SIZE_T SUDO_TYPE_SSIZE_T SUDO_TYPE_DEV_T -- 2.40.0