openssh on AIX v4.3.3 with native compiler

Markus Friedl markus.friedl at informatik.uni-erlangen.de
Fri Dec 10 20:33:53 EST 1999


> void    fatal(const char *fmt,...) __attribute__((format(printf, 1, 2)));

try this:

Index: cipher.c
===================================================================
RCS file: /cvs/src/usr.bin/ssh/cipher.c,v
retrieving revision 1.18
diff -u -r1.18 cipher.c
--- cipher.c	1999/11/24 19:53:45	1.18
+++ cipher.c	1999/12/07 13:30:41
@@ -106,7 +106,7 @@
 
 void (*cipher_attack_detected) (const char *fmt,...) = fatal;
 
-static inline void
+static INLINE void
 detect_cbc_attack(const unsigned char *src,
 		  unsigned int len)
 {
Index: includes.h
===================================================================
RCS file: /cvs/src/usr.bin/ssh/includes.h,v
retrieving revision 1.11
diff -u -r1.11 includes.h
--- includes.h	1999/11/24 19:53:47	1.11
+++ includes.h	1999/12/07 13:30:41
@@ -57,6 +57,18 @@
 
 #include "version.h"
 
+#ifdef __GNUC__
+#  if __GNUC__ < 2
+#    define INLINE inline
+#    define __attribute__(x)
+#  else
+#    define INLINE __inline__
+#  endif /* __GNUC__ < 2 */
+#else
+#  define __attribute__(x)
+#  define INLINE
+#endif /* __GNUC__ */
+
 /* Define this to be the path of the xauth program. */
 #define XAUTH_PATH "/usr/X11R6/bin/xauth"





More information about the openssh-unix-dev mailing list