Subject: [PATCH] Resolve compile issues on Solaris x64 and UltraSPARC

[PATCH] Resolve compile issues on Solaris x64 and UltraSPARC

From: Dave McCaldon <davem_at_intersystems.com>
Date: Fri, 5 Feb 2010 12:11:09 -0500

Solaris builds of libssh2-1.2.3 failed on both x64 and UltraSPARC platforms because of two problems:

     1) src/agent.c:145 sun is a reserved word when using the SUNWspro compiler
     2) example/direct_tcpip.c:84 INADDR_NONE is not defined

This patch resolves both of these issues.

I have successfully built libssh-1.2.3 with this patch on the following platforms:

        Mac OS x64
        Linux 32-bit (RedHat)
        Linux 64-bit (RedHat)
        Linux Itanium (SuSE)
        HP/UX (PA-RISC and Itanium)
        AIX 5.3 (32-bit and 64-bit)
        Solaris x64 and UltraSPARC
        Windows x86
        Windows x64
        HP Tru64 5.1B (Alpha)

Thanks.

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Received on 2010-02-05