summaryrefslogtreecommitdiff
path: root/common/compat.h
diff options
context:
space:
mode:
authorRob McMahon <Rob.McMahon@warwick.ac.uk>2012-07-31 18:21:42 +0200
committerStef Walter <stefw@gnome.org>2012-07-31 18:22:12 +0200
commit61abcb61e8b8e988dd03cfd4553f29132a8ca38a (patch)
tree8d61fae0634970942483be334925c1a9e2ebd5c6 /common/compat.h
parent76180db6b326f8c87aef5b3eded9463432ce8d82 (diff)
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
Diffstat (limited to 'common/compat.h')
-rw-r--r--common/compat.h4
1 files changed, 4 insertions, 0 deletions
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 <errno.h>
+#endif /* HAVE_ERRNO_H */
+
#endif /* __COMPAT_H__ */