From 8843d8b68d180dbc3b0edbfb47ded3fadbe86988 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 20 Jul 2009 22:50:45 +0200 Subject: Fix sol8 + ss11 compile errors. Thanks to tysonite@gmail.com. --- include/libssh/priv.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'include/libssh') diff --git a/include/libssh/priv.h b/include/libssh/priv.h index 356d0f98..6fe8fba3 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -175,7 +175,11 @@ void hmac_final(HMACCTX ctx,unsigned char *hashmacbuf,unsigned int *len); struct string_struct { u32 size; unsigned char string[MAX_PACKET_LEN]; -} __attribute__ ((packed)); +} +#if !defined(__SUNPRO_C) +__attribute__ ((packed)) +#endif +; /** Describes a buffer state at a moment */ @@ -804,6 +808,12 @@ int ssh_execute_message_callbacks(SSH_SESSION *session); /* log.c */ +#ifndef __FUNCTION__ +#if defined(__SUNPRO_C) +#define __FUNCTION__ __func__ +#endif +#endif + #define _enter_function(sess) \ do {\ if((sess)->log_verbosity >= SSH_LOG_FUNCTIONS){ \ -- cgit