summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-09-15 21:31:54 +1000
committerDamien Miller <djm@mindrot.org>2001-09-15 21:31:54 +1000
commit58be738ac85919c2302c8375eeaf7eadef93df5b (patch)
tree82e82625276db16b03e6d885b3b39e9978586837
parent85085cb96d479de364ceb3b7e2556090a55e2a61 (diff)
- (djm) Make sure rijndael.c picks config.h
- (djm) Ensure that u_char gets defined
-rw-r--r--acconfig.h3
-rw-r--r--configure.in17
-rw-r--r--defines.h7
-rw-r--r--rijndael.c2
4 files changed, 26 insertions, 3 deletions
diff --git a/acconfig.h b/acconfig.h
index c1c7c243..76eb3a9e 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 007a95ee..fc0d4797 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 <sys/types.h>
+ ],
+ [ 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 4fa846e9..233e0b83 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 1478c122..f28a9c66 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 <stdlib.h>
#include <string.h>