From 58be738ac85919c2302c8375eeaf7eadef93df5b Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Sat, 15 Sep 2001 21:31:54 +1000 Subject: [PATCH] - (djm) Make sure rijndael.c picks config.h - (djm) Ensure that u_char gets defined --- acconfig.h | 3 ++- configure.in | 17 ++++++++++++++++- defines.h | 7 ++++++- rijndael.c | 2 ++ 4 files changed, 26 insertions(+), 3 deletions(-) diff --git a/acconfig.h b/acconfig.h index c1c7c243b..76eb3a9e9 100644 --- a/acconfig.h +++ b/acconfig.h @@ -1,4 +1,4 @@ -/* $Id: acconfig.h,v 1.114 2001/08/16 00:09:50 mouring Exp $ */ +/* $Id: acconfig.h,v 1.115 2001/09/15 11:31:54 djm Exp $ */ #ifndef _CONFIG_H #define _CONFIG_H @@ -253,6 +253,7 @@ #undef HAVE_UINTXX_T #undef HAVE_INT64_T #undef HAVE_U_INT64_T +#undef HAVE_U_CHAR #undef HAVE_SOCKLEN_T #undef HAVE_SIZE_T #undef HAVE_SSIZE_T diff --git a/configure.in b/configure.in index 007a95ee9..fc0d4797e 100644 --- a/configure.in +++ b/configure.in @@ -1,4 +1,4 @@ -# $Id: configure.in,v 1.307 2001/08/16 00:09:50 mouring Exp $ +# $Id: configure.in,v 1.308 2001/09/15 11:31:54 djm Exp $ AC_INIT(ssh.c) @@ -910,6 +910,21 @@ then ) fi + +AC_CACHE_CHECK([for u_char], ac_cv_have_u_char, [ + AC_TRY_COMPILE( + [ +#include + ], + [ u_char foo; foo = 125; ], + [ ac_cv_have_u_char="yes" ], + [ ac_cv_have_u_char="no" ] + ) +]) +if test "x$ac_cv_have_u_char" = "xyes" ; then + AC_DEFINE(HAVE_U_CHAR) +fi + AC_CACHE_CHECK([for socklen_t], ac_cv_have_socklen_t, [ AC_TRY_COMPILE( [ diff --git a/defines.h b/defines.h index 4fa846e99..233e0b833 100644 --- a/defines.h +++ b/defines.h @@ -1,7 +1,7 @@ #ifndef _DEFINES_H #define _DEFINES_H -/* $Id: defines.h,v 1.70 2001/08/16 00:09:50 mouring Exp $ */ +/* $Id: defines.h,v 1.71 2001/09/15 11:31:54 djm Exp $ */ /* Necessary headers */ @@ -238,6 +238,11 @@ typedef unsigned long long int u_int64_t; # define HAVE_LONG_LONG_INT 1 #endif +#ifndef HAVE_U_CHAR +typedef unsigned char u_char; +# define HAVE_U_CHAR +#endif /* HAVE_U_CHAR */ + #ifndef HAVE_SOCKLEN_T typedef unsigned int socklen_t; # define HAVE_SOCKLEN_T diff --git a/rijndael.c b/rijndael.c index 1478c1223..f28a9c669 100644 --- a/rijndael.c +++ b/rijndael.c @@ -25,6 +25,8 @@ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "config.h" + #include #include