[PATCH weston 6/8] compositor: get PATH_MAX on non-Linux systems from param.h

Greg V greg at unrelenting.technology
Sun Dec 17 19:04:40 UTC 2017


---
 compositor/main.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/compositor/main.c b/compositor/main.c
index 32fb33e8..dedb5e64 100644
--- a/compositor/main.c
+++ b/compositor/main.c
@@ -41,7 +41,11 @@
 #include <sys/socket.h>
 #include <libinput.h>
 #include <sys/time.h>
+#ifdef __linux__
 #include <linux/limits.h>
+#else
+#include <sys/param.h>
+#endif
 
 #ifdef HAVE_LIBUNWIND
 #define UNW_LOCAL_ONLY
-- 
2.15.1



More information about the wayland-devel mailing list