Archive Index
This month's Index
|
Subject: [PATCH] Fix Tru64 socklen_t compile issue with direct_tcpip.c
[PATCH] Fix Tru64 socklen_t compile issue with direct_tcpip.c
From: Dave McCaldon <davem_at_intersystems.com>
Date: Fri, 5 Feb 2010 16:04:16 -0500
I spoke too soon -- my test build of libssh2-1.2.3 (with my previous patch) in fact failed in direct_tcpip.c on Tru64 (DECunix) with:
cxx -DHAVE_CONFIG_H -I../include -I../example -I/home/davem/work/openssl-0.9.8g/include -DLIBSSH2DEBUG -g -c direct_tcpip.c
Looking into this, in /usr/include/sys/socket.h, Tru64 only defines socklen_t under the following conditions:
/*
It's not as simple as just adding a typedef for socklen_t as other socket functions (such as accept()) are defined as taking an int for socklen_t if _POSIX_PII_SOCKET is not defined.
Since socklen_t is the more portable approach, I felt it best to properly fix this for Tru64 and thus I have updated configure.ac to add -D_POSIX_PII_SOCKET to CFLAGS for Tru64 (DECunix) platform(s).
Thanks.
_______________________________________________
|