diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2001-12-23 03:28:03 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2001-12-23 03:28:03 +0000 |
commit | 4ed73b6f071b43dcb9f79eaf8821ccaaa268ebfb (patch) | |
tree | 2d173a64fd776ba05ca0e5deb77f7eda2013df75 /src | |
parent | d6e5285e9571040386b6bd20b01bfb26f838ee9d (diff) | |
download | tinyproxy-4ed73b6f071b43dcb9f79eaf8821ccaaa268ebfb.tar.gz tinyproxy-4ed73b6f071b43dcb9f79eaf8821ccaaa268ebfb.zip |
Fixed up the order of some of the includes to cope with OpenBSD. Also,
test for the MSG_NOSIGNAL define.
Diffstat (limited to 'src')
-rw-r--r-- | src/tinyproxy.h | 16 |
1 files changed, 12 insertions, 4 deletions
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 <sys/ioctl.h> #endif -#ifdef HAVE_SYS_RESOURCE_H -# include <sys/resource.h> -#endif #ifdef HAVE_SYS_SELECT_H # include <sys/select.h> #endif @@ -71,6 +68,9 @@ # endif #endif +#ifdef HAVE_SYS_RESOURCE_H +# include <sys/resource.h> +#endif #ifdef HAVE_SYS_UIO_H # include <sys/uio.h> #endif @@ -158,6 +158,14 @@ # include <wctype.h> #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 */ |