From 48a8b1f5fc2be30cb1a99254fd1435c5117b0bfa Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Wed, 4 Aug 1999 06:34:59 +0000 Subject: [PATCH] add shutdown constants git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6699 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/roken-common.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/roken/roken-common.h b/lib/roken/roken-common.h index e55bb779e..f9018a207 100644 --- a/lib/roken/roken-common.h +++ b/lib/roken/roken-common.h @@ -186,6 +186,22 @@ struct addrinfo { #define INET6_ADDRSTRLEN 46 #endif +/* + * for shutdown(2) + */ + +#ifndef SHUT_RD +#define SHUT_RD 0 +#endif + +#ifndef SHUT_WR +#define SHUT_WR 1 +#endif + +#ifndef SHUT_RDWR +#define SHUT_RDWR 2 +#endif + #ifndef HAVE___ATTRIBUTE__ #define __attribute__(x) #endif