[stunnel-users] stunnel-4.07 on non-IPv6 systems
Hans Werner Strube
strube at physik3.gwdg.de
Tue Jan 4 15:06:16 CET 2005
On systems which do not yet support IPv6 and do not have getnameinfo
(for instance, Solaris 7), also NI_NUMERICHOST and NI_NUMERICSERV are
usually undefined. In stunnel-4.07, this causes compilation of src/network.c
to fail. Patch:
*** src/network.c.ORI Mon Jan 3 00:20:27 2005
--- src/network.c Tue Jan 4 14:46:10 2005
***************
*** 73,78 ****
--- 73,84 ----
static const char *s_gai_strerror(int);
#ifndef HAVE_GETNAMEINFO
+ #ifndef NI_NUMERICHOST
+ #define NI_NUMERICHOST 2
+ #endif
+ #ifndef NI_NUMERICSERV
+ #define NI_NUMERICSERV 8
+ #endif
static int getnameinfo(const struct sockaddr *, socklen_t,
char *, int , char *, int , int );
#endif
More information about the stunnel-users
mailing list