aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2016-09-08 15:32:15 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2016-09-08 15:32:15 +0100
commit3ed0973493862a3720c8dd46ee6d58f3d15f2490 (patch)
tree0cccc47481f77b76e138a6923ec976123d13686e
parentf68a908c8ae4cd013e1a0ca5c5643381b0acb725 (diff)
downloadrtmux-3ed0973493862a3720c8dd46ee6d58f3d15f2490.tar.gz
rtmux-3ed0973493862a3720c8dd46ee6d58f3d15f2490.tar.bz2
rtmux-3ed0973493862a3720c8dd46ee6d58f3d15f2490.zip
Solaris build fixes from Rob Paisley.
-rw-r--r--compat.h8
-rw-r--r--osdep-sunos.c2
2 files changed, 9 insertions, 1 deletions
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 <sys/filio.h>
+#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 <sys/types.h>
+#include <sys/param.h>
#include <sys/stat.h>
#include <event.h>