Compile error rijndael on Solaris 2.6 (and fix)
Damien Miller
djm at mindrot.org
Sat Oct 14 23:26:20 EST 2000
On Sat, 14 Oct 2000, Lasse Holmqvist wrote:
>
> When compiling openssh-SNAP-20001014 on Solaris 2.6 with
> gcc 2.95.2 I get:
>
> In file included from rijndael.c:42:
> rijndael.h:6: parse error before `u1byte'
> and a lot more warnings and errors...
>
> Solved by adding
> #include "config.h"
> in rijndael.c
Thanks - fixed:
Index: rijndael.c
===================================================================
RCS file: /var/cvs/openssh/rijndael.c,v
retrieving revision 1.1
diff -u -r1.1 rijndael.c
--- rijndael.c 2000/10/14 05:23:12 1.1
+++ rijndael.c 2000/10/14 12:25:58
@@ -38,7 +38,7 @@
*/
-#include <sys/types.h>
+#include "includes.h"
#include "rijndael.h"
void gen_tabs __P((void));
Index: rijndael.h
===================================================================
RCS file: /var/cvs/openssh/rijndael.h,v
retrieving revision 1.1
diff -u -r1.1 rijndael.h
--- rijndael.h 2000/10/14 05:23:12 1.1
+++ rijndael.h 2000/10/14 12:25:58
@@ -1,6 +1,8 @@
#ifndef _RIJNDAEL_H_
#define _RIJNDAEL_H_
+#include "includes.h"
+
/* 1. Standard types for AES cryptography source code */
typedef u_int8_t u1byte; /* an 8 bit unsigned character type */
--
| ``The power of accurate observation is | Damien Miller <djm at mindrot.org>
| commonly called cynicism by those who | @Work <djm at ibs.com.au>
| have not got it'' - George Bernard Shaw | http://www.mindrot.org
More information about the openssh-unix-dev
mailing list