From 514a723f7489123371bded176355ead48f338ae0 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 9 Mar 2017 15:39:13 +0000 Subject: Solaris fixes, mostly from Dagobert Michelsen. --- compat.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'compat.h') diff --git a/compat.h b/compat.h index 47a1706f..5f206120 100644 --- a/compat.h +++ b/compat.h @@ -22,6 +22,7 @@ #include #include +#include #include #ifndef __GNUC__ @@ -57,6 +58,15 @@ typedef uint32_t u_int32_t; typedef uint64_t u_int64_t; #endif +#ifdef HAVE_ERR_H +#include +#else +void err(int, const char *, ...); +void errx(int, const char *, ...); +void warn(const char *, ...); +void warnx(const char *, ...); +#endif + #ifndef HAVE_PATHS_H #define _PATH_BSHELL "/bin/sh" #define _PATH_TMP "/tmp/" -- cgit