From 142f42378608e593eb36ceb33895db99948427aa Mon Sep 17 00:00:00 2001 From: Sam Varshavchik Date: Fri, 21 May 2021 21:11:51 -0400 Subject: -Wall and -Werror fixes --- md5/configure.ac | 12 +++++++++--- md5/md5.h | 3 +++ 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'md5') diff --git a/md5/configure.ac b/md5/configure.ac index 0f53ceb..4a90c95 100644 --- a/md5/configure.ac +++ b/md5/configure.ac @@ -35,7 +35,7 @@ dnl Checks for libraries. dnl Checks for header files. AC_HEADER_STDC -AC_CHECK_HEADERS(sys/types.h) +AC_CHECK_HEADERS(sys/types.h stdint.h) AC_ARG_WITH(int32, @@ -49,8 +49,11 @@ AC_ARG_WITH(int32, #if HAVE_SYS_TYPES_H #include #endif +#if HAVE_STDINT_H +#include +#endif +uint32_t i; ],[ - uint32_t i=0; ], [ AC_MSG_RESULT(yes) ; int32="uint32_t"], [ AC_MSG_RESULT(no) @@ -60,8 +63,11 @@ AC_ARG_WITH(int32, #if HAVE_SYS_TYPES_H #include #endif +#if HAVE_STDINT_H +#include +#endif +u_int32_t i; ],[ - u_int32_t i=0; ], [AC_MSG_RESULT(yes); int32="u_int32_t"],[ AC_MSG_RESULT(no) diff --git a/md5/md5.h b/md5/md5.h index 2124879..7a99ea1 100644 --- a/md5/md5.h +++ b/md5/md5.h @@ -24,6 +24,9 @@ extern "C" { #include #endif +#if HAVE_STDINT_H +#include +#endif #define MD5_DIGEST_SIZE 16 #define MD5_BLOCK_SIZE 64 -- cgit v1.2.3