mirror of
git://anongit.mindrot.org/openssh.git
synced 2025-04-06 17:41:53 +00:00
Define UINT32_MAX if needed.
This commit is contained in:
parent
7169e31121
commit
2912596aec
11
configure.ac
11
configure.ac
@ -3541,6 +3541,17 @@ fprint_ll(FILE *f, long long n)
|
|||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_CHECK_DECLS([UINT32_MAX], , , [[
|
||||||
|
#ifdef HAVE_SYS_LIMITS_H
|
||||||
|
# include <sys/limits.h>
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_LIMITS_H
|
||||||
|
# include <limits.h>
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_STDINT_H
|
||||||
|
# include <stdint.h>
|
||||||
|
#endif
|
||||||
|
]])
|
||||||
|
|
||||||
# More checks for data types
|
# More checks for data types
|
||||||
AC_CACHE_CHECK([for u_int type], ac_cv_have_u_int, [
|
AC_CACHE_CHECK([for u_int type], ac_cv_have_u_int, [
|
||||||
|
@ -244,6 +244,9 @@ typedef unsigned short int u_int16_t;
|
|||||||
# endif
|
# endif
|
||||||
# if (SIZEOF_INT == 4)
|
# if (SIZEOF_INT == 4)
|
||||||
typedef unsigned int u_int32_t;
|
typedef unsigned int u_int32_t;
|
||||||
|
# if defined(HAVE_DECL_UINT32_MAX) && (HAVE_DECL_UINT32_MAX == 0)
|
||||||
|
# define UINT32_MAX UINT_MAX
|
||||||
|
# endif
|
||||||
# else
|
# else
|
||||||
# error "32 bit int type not found."
|
# error "32 bit int type not found."
|
||||||
# endif
|
# endif
|
||||||
|
Loading…
Reference in New Issue
Block a user