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

Submitted by Greg V on Dec. 17, 2017, 7:04 p.m.

Details

Message ID 20171217190442.29265-7-greg@unrelenting.technology
State New
Headers show
Series "Portability patches" ( rev: 1 ) in Wayland

Not browsing as part of any series.

Commit Message

Greg V Dec. 17, 2017, 7:04 p.m.
---
 compositor/main.c | 4 ++++
 1 file changed, 4 insertions(+)

Patch hide | download patch | download mbox

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