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; diff --git a/osdep-sunos.c b/osdep-sunos.c index 855cac9d..39ec8cd7 100644 --- a/osdep-sunos.c +++ b/osdep-sunos.c @@ -16,7 +16,7 @@ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include +#include #include #include