From 0660e80f6558e7672d2406f6a022943ac2846152 Mon Sep 17 00:00:00 2001 From: patthoyts Date: Mon, 22 Nov 2004 10:25:37 +0000 Subject: [PATCH] * generic/udp_tcl.h: Fixed the -ttl option for Windows. --- ChangeLog | 3 ++- generic/udp_tcl.h | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c86949e..c057fd5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ -2004-11-22 Pat Thoyts +2004-11-22 Pat Thoyts + * generic/udp_tcl.h: Fixed the -ttl option for Windows. * generic/udp_tcl.c: Added support for setting and retrieving the TTL option on the socket. The default is specified by the system but can be set for individual sockets. diff --git a/generic/udp_tcl.h b/generic/udp_tcl.h index fdcf899..2fb38ed 100644 --- a/generic/udp_tcl.h +++ b/generic/udp_tcl.h @@ -51,6 +51,11 @@ #define TCL_STORAGE_CLASS DLLEXPORT #endif /* BUILD_udp */ +/* Windows doesn't declare SOL_IP. It uses this instead... */ +#ifndef SOL_IP +#define SOL_IP IPPROTO_IP +#endif /* SOL_IP */ + #ifdef WIN32 typedef u_short uint16_t; -- 2.23.0