From 766bae9d7626bb596fc3b60d2cd5fe5a7fc356db Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 30 Jul 2009 10:45:58 +0200 Subject: Fix build with MSVC. --- libssh/server.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libssh/server.c') diff --git a/libssh/server.c b/libssh/server.c index 8e7a26a..3872849 100644 --- a/libssh/server.c +++ b/libssh/server.c @@ -32,7 +32,6 @@ #include #include #include -#include #include "libssh/priv.h" #include "libssh/libssh.h" @@ -45,7 +44,7 @@ #define SOCKOPT_TYPE_ARG4 char /* We need to provide hstrerror. Not we can't call the parameter h_errno because it's #defined */ -inline char *hstrerror(int h_errno_val) { +static char *hstrerror(int h_errno_val) { static char text[50] = {0}; snprintf(text, sizeof(text), "gethostbyname error %d\n", h_errno_val); -- cgit