summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>1999-12-15 09:34:31 +1100
committerDamien Miller <djm@mindrot.org>1999-12-15 09:34:31 +1100
commit3b9d5e993ad50613fb990f1b70c0ce77793cba8c (patch)
tree3acf0ccdefe883caa9d8f303df8b0e79d21da699
parent84093e9d7407b64673d20b38a02bca432f970ba6 (diff)
- Added better test for inline functions compiler support from
Darren_Hall@progressive.com
-rw-r--r--ChangeLog2
-rw-r--r--acconfig.h12
-rw-r--r--cipher.c4
-rw-r--r--configure.in3
4 files changed, 10 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index f96ddd454..6346a3202 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
2 - Integrated patchs from Juergen Keil <jk@tools.de> 2 - Integrated patchs from Juergen Keil <jk@tools.de>
3 - Avoid void* pointer arithmatic 3 - Avoid void* pointer arithmatic
4 - Use LDFLAGS correctly 4 - Use LDFLAGS correctly
5 - Added better test for inline functions compiler support from
6 Darren_Hall@progressive.com
5 7
619991214 819991214
7 - OpenBSD CVS Changes 9 - OpenBSD CVS Changes
diff --git a/acconfig.h b/acconfig.h
index 324f45dbe..6be7bddb2 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -261,14 +261,8 @@ enum
261# define __P(x) x 261# define __P(x) x
262#endif 262#endif
263 263
264#ifdef __GNUC__ 264#if defined(__GNUC__) && (__GNUC__ < 2)
265# if __GNUC__ < 2 265# define __attribute__(x)
266# define INLINE inline
267# define __attribute__(x)
268# else
269# define INLINE __inline__
270# endif /* __GNUC__ < 2 */
271#else 266#else
272# define __attribute__(x) 267# define __attribute__(x)
273# define INLINE 268#endif /* defined(__GNUC__) && (__GNUC__ < 2) */
274#endif /* __GNUC__ */
diff --git a/cipher.c b/cipher.c
index b06564d4a..64c407e62 100644
--- a/cipher.c
+++ b/cipher.c
@@ -12,7 +12,7 @@
12 */ 12 */
13 13
14#include "includes.h" 14#include "includes.h"
15RCSID("$Id: cipher.c,v 1.10 1999/12/14 22:06:28 damien Exp $"); 15RCSID("$Id: cipher.c,v 1.11 1999/12/14 22:34:31 damien Exp $");
16 16
17#include "ssh.h" 17#include "ssh.h"
18#include "cipher.h" 18#include "cipher.h"
@@ -111,7 +111,7 @@ swap_bytes(const unsigned char *src, unsigned char *dst_, int n)
111 111
112void (*cipher_attack_detected) (const char *fmt,...) = fatal; 112void (*cipher_attack_detected) (const char *fmt,...) = fatal;
113 113
114static INLINE void 114static inline void
115detect_cbc_attack(const unsigned char *src, 115detect_cbc_attack(const unsigned char *src,
116 unsigned int len) 116 unsigned int len)
117{ 117{
diff --git a/configure.in b/configure.in
index f77e46a09..19372e2d5 100644
--- a/configure.in
+++ b/configure.in
@@ -8,7 +8,10 @@ AC_PROG_CPP
8AC_PROG_RANLIB 8AC_PROG_RANLIB
9AC_PROG_INSTALL 9AC_PROG_INSTALL
10AC_CHECK_PROG(AR, ar, ar) 10AC_CHECK_PROG(AR, ar, ar)
11
12dnl Checks for compiler characteristics
11if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -Wall"; fi 13if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -Wall"; fi
14AC_C_INLINE
12 15
13dnl Check for OpenSSL/SSLeay directories. 16dnl Check for OpenSSL/SSLeay directories.
14AC_MSG_CHECKING([for OpenSSL/SSLeay directory]) 17AC_MSG_CHECKING([for OpenSSL/SSLeay directory])