From 3ed0973493862a3720c8dd46ee6d58f3d15f2490 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 8 Sep 2016 15:32:15 +0100 Subject: Solaris build fixes from Rob Paisley. --- compat.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'compat.h') diff --git a/compat.h b/compat.h index 28ca9c61..12f99d13 100644 --- a/compat.h +++ b/compat.h @@ -35,6 +35,14 @@ #define ECHOPRT 0 #endif +#ifndef ACCESSPERMS +#define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) +#endif + +#if !defined(FIONREAD) && defined(__sun) +#include +#endif + #ifndef HAVE_BSD_TYPES typedef uint8_t u_int8_t; typedef uint16_t u_int16_t; -- cgit