From 4ed73b6f071b43dcb9f79eaf8821ccaaa268ebfb Mon Sep 17 00:00:00 2001 From: Robert James Kaes Date: Sun, 23 Dec 2001 03:28:03 +0000 Subject: Fixed up the order of some of the includes to cope with OpenBSD. Also, test for the MSG_NOSIGNAL define. --- ChangeLog | 7 +++++++ src/tinyproxy.h | 16 ++++++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index f751dc0..1f6ab44 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2001-12-22 Robert James Kaes + + * src/tinyproxy.h: Add a test for the MSG_NOSIGNAL define, so it's + apparently a non-standard extension to send(). Also, moved the + include after the includes for the various time + include files. + 2001-12-19 Robert James Kaes * src/reqs.c (write_message): Encapsulate code to handle sending diff --git a/src/tinyproxy.h b/src/tinyproxy.h index 61a00a7..02efd71 100644 --- a/src/tinyproxy.h +++ b/src/tinyproxy.h @@ -1,4 +1,4 @@ -/* $Id: tinyproxy.h,v 1.23 2001-11-26 05:23:49 rjkaes Exp $ +/* $Id: tinyproxy.h,v 1.24 2001-12-23 03:28:03 rjkaes Exp $ * * See 'tinyproxy.c' for a detailed description. * @@ -40,9 +40,6 @@ #ifdef HAVE_SYS_IOCTL_H # include #endif -#ifdef HAVE_SYS_RESOURCE_H -# include -#endif #ifdef HAVE_SYS_SELECT_H # include #endif @@ -71,6 +68,9 @@ # endif #endif +#ifdef HAVE_SYS_RESOURCE_H +# include +#endif #ifdef HAVE_SYS_UIO_H # include #endif @@ -158,6 +158,14 @@ # include #endif +/* + * If MSG_NOSIGNAL is not defined, define it to be zero so that it doesn't + * cause any problems. + */ +#ifndef MSG_NOSIGNAL +# define MSG_NOSIGNAL (0) +#endif + #ifndef SHUT_RD /* these three Posix.1g names are quite new */ # define SHUT_RD 0 /* shutdown for reading */ # define SHUT_WR 1 /* shutdown for writing */ -- cgit v1.2.3