From 61abcb61e8b8e988dd03cfd4553f29132a8ca38a Mon Sep 17 00:00:00 2001 From: Rob McMahon Date: Tue, 31 Jul 2012 18:21:42 +0200 Subject: Fix build on solaris * Conditional inclusion of the errno.h header * Link librt when appropriate for nanosleep https://bugs.freedesktop.org/show_bug.cgi?id=52261 --- common/compat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common') diff --git a/common/compat.h b/common/compat.h index 6326430..8b3ac21 100644 --- a/common/compat.h +++ b/common/compat.h @@ -76,4 +76,8 @@ void vwarnx (const char *fmt, va_list ap); #endif /* !HAVE_ERR_H */ +#ifdef HAVE_ERRNO_H +#include +#endif /* HAVE_ERRNO_H */ + #endif /* __COMPAT_H__ */ -- cgit v1.1