make sure we have PATH_MAX on some linux toolchains 98/2898/1
authorJack Mitchell <ml@communistcode.co.uk>
Tue, 15 Jan 2013 11:49:05 +0000 (19:49 +0800)
committerKevron Rees <kevron_m_rees@linux.intel.com>
Thu, 7 Mar 2013 21:01:24 +0000 (13:01 -0800)
(AG modified a bit)

Signed-off-by: Jack Mitchell <ml@communistcode.co.uk>
lib/private-libwebsockets.h

index 48bdc1a..1b721e5 100644 (file)
 #include <openssl/sha.h>
 #endif
 
+/* some Linux toolchains don't have this from the above, some do */
+#ifndef PATH_MAX
+#include <linux/limits.h>
+#endif
+
 #include "libwebsockets.h"
 
 extern void _lws_log(int filter, const char *format, ...);