Commit b22e6e09 authored by Eddie Kohler's avatar Eddie Kohler

Fix compile issue on gcc-4.9.1 and recent Debian.

Reported by Lars Bro. Yes, we have uintptr_t.
parent 4009e65d
......@@ -3103,6 +3103,7 @@ fi
as_fn_append ac_header_list " sys/types.h"
as_fn_append ac_header_list " unistd.h"
as_fn_append ac_header_list " stdint.h"
as_fn_append ac_header_list " inttypes.h"
as_fn_append ac_header_list " endian.h"
as_fn_append ac_header_list " machine/endian.h"
......@@ -7408,6 +7409,8 @@ _ACEOF
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
$as_echo_n "checking whether char is unsigned... " >&6; }
if ${ac_cv_c_char_unsigned+:} false; then :
......
......@@ -31,15 +31,15 @@
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_INTTYPES_H || !defined(HAVE_CONFIG_H)
# include <inttypes.h>
#endif
/* By default, assume we have inttypes.h, strtoul, and uintptr_t. */
#if !defined(HAVE_STRTOUL) && !defined(HAVE_CONFIG_H)
#if !HAVE_STRTOUL && !defined(HAVE_CONFIG_H)
# define HAVE_STRTOUL 1
#endif
#if defined(HAVE_INTTYPES_H) || !defined(HAVE_CONFIG_H)
# include <inttypes.h>
#endif
#if !defined(HAVE_UINTPTR_T) && defined(HAVE_CONFIG_H)
#if !HAVE_UINTPTR_T && !HAVE_INTTYPES_H && defined(HAVE_CONFIG_H)
typedef unsigned long uintptr_t;
#endif
......
......@@ -617,7 +617,7 @@ dnl
AC_DEFUN([CLICK_CHECK_INTEGER_TYPES], [
AC_C_CHAR_UNSIGNED
AC_CHECK_HEADERS_ONCE([inttypes.h])
AC_CHECK_HEADERS_ONCE([stdint.h inttypes.h])
if test x$ac_cv_header_inttypes_h = xno; then
AC_CACHE_CHECK(for uintXX_t typedefs, ac_cv_uint_t,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment