From d70fdcf7f031566fd582362899099f9fba23a7ac Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Mon, 13 Mar 2000 00:59:01 -0500 Subject: snapshot of project "lynx", label v2-8-3dev_22 --- WWW/Library/Implementation/www_tcp.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'WWW/Library/Implementation/www_tcp.h') diff --git a/WWW/Library/Implementation/www_tcp.h b/WWW/Library/Implementation/www_tcp.h index 4048d7cf..85ac581e 100644 --- a/WWW/Library/Implementation/www_tcp.h +++ b/WWW/Library/Implementation/www_tcp.h @@ -491,6 +491,11 @@ struct timeval { #endif /* __GNUC__ */ #endif /* VAXC && !DECC */ +#include +#ifndef errno +extern int errno; +#endif /* !errno */ + #endif /* VMS */ /* @@ -641,7 +646,7 @@ typedef int pid_t; #else -#if !(defined(VM) || defined(VMS) || defined(THINK_C) || defined(__MINGW32__)) +#if !(defined(VM) || defined(VMS) || defined(THINK_C) || defined(PCNFS) || defined(__MINGW32__)) #define DECL_SYS_ERRLIST 1 #endif @@ -771,5 +776,13 @@ typedef unsigned int fd_set; #endif /* !FD_SET */ #endif /* SELECT */ +/* + * Macro for setting errno - only define this if you really can do it. + */ +#if !defined(errno) && (!defined(VMS) || defined(UCX)) +#define set_errno(value) errno = value +#else +#define set_errno(value) /* we do not know how */ +#endif #endif /* TCP_H */ -- cgit 1.4.1-2-gfad0