From 2ceade81b46e12d92c7fb674aca7aa23f4883b37 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Mon, 11 May 2020 13:22:34 -0500 Subject: [PATCH] pollrdhup: Skip if support doesn't exist. Add Haiku support --- clnt.c | 5 +++++ rpc/rpc_router_ioctl.h | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/clnt.c b/clnt.c index 67e2213..c7c7bdd 100644 --- a/clnt.c +++ b/clnt.c @@ -16,6 +16,11 @@ #include #include +// If POLLRDHUP not supported, ignore +#ifndef POLLRDHUP +#warning POLLRDHUP not available on this system. Skipping. +#define POLLRDHUP 0 +#endif struct CLIENT { xdr_s_type *xdr; diff --git a/rpc/rpc_router_ioctl.h b/rpc/rpc_router_ioctl.h index 4d19a2a..a028527 100644 --- a/rpc/rpc_router_ioctl.h +++ b/rpc/rpc_router_ioctl.h @@ -18,7 +18,11 @@ #ifndef RPC_IOCTL_H #define RPC_IOCTL_H +#if defined(__linux__) #include +#elif defined(__HAIKU__) +#include +#endif struct rpcrouter_ioctl_server_args { uint32_t prog;