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;