fi
AC_HEADER_STDC
-AC_CHECK_HEADERS(fcntl.h strings.h sys/file.h sys/ioctl.h sys/time.h termio.h unistd.h)
+AC_CHECK_HEADERS(fcntl.h strings.h sys/file.h sys/ioctl.h sys/time.h termio.h unistd.h stdint.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
* These limits should be verified and coded into "h-constant.h".
*/
-
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
/*** Special 4 letter names for some standard types ***/
/* Signed/Unsigned 16 bit value */
+#ifdef HAVE_STDINT_H
+typedef int16_t s16b;
+typedef uint16_t u16b;
+#else
typedef signed short s16b;
typedef unsigned short u16b;
+#endif
/* Signed/Unsigned 32 bit value */
-#ifdef L64 /* 64 bit longs */
-typedef signed int s32b;
-typedef unsigned int u32b;
+#ifdef HAVE_STDINT_H
+typedef int32_t s32b;
+typedef uint32_t u32b;
#else
typedef signed long s32b;
typedef unsigned long u32b;