From f1467a0aa5dc2f683d657d6b3670c98bcf1b1abe Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 11 Oct 2015 17:00:17 +0200 Subject: [PATCH] Define UTCP_SHUT_RD/WR/RDWR. Don't rely on for the definitions of SHUT_RD/WR/RDWR, add our own. They should be compatible. --- utcp.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utcp.h b/utcp.h index 085a287..a29ef96 100644 --- a/utcp.h +++ b/utcp.h @@ -40,6 +40,10 @@ struct utcp; struct utcp_connection; #endif +#define UTCP_SHUT_RD 0 +#define UTCP_SHUT_WR 1 +#define UTCP_SHUT_RDWR 2 + typedef bool (*utcp_pre_accept_t)(struct utcp *utcp, uint16_t port); typedef void (*utcp_accept_t)(struct utcp_connection *utcp_connection, uint16_t port); -- 2.39.2