From 22fe2598d3740a8537695edd5d5b7d5c6301f1b9 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 20 Mar 2016 16:14:22 -0400 Subject: move the fallback definition of PATH_MAX to slibtool_spawn_impl.h. --- src/internal/slibtool_spawn_impl.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/internal/slibtool_spawn_impl.h') diff --git a/src/internal/slibtool_spawn_impl.h b/src/internal/slibtool_spawn_impl.h index b376ad8..3966fcb 100644 --- a/src/internal/slibtool_spawn_impl.h +++ b/src/internal/slibtool_spawn_impl.h @@ -4,10 +4,15 @@ /* Released under the Standard MIT License; see COPYING.SLIBTOOL. */ /*******************************************************************/ +#include #include #include #include +#ifndef PATH_MAX +#define PATH_MAX (_XOPEN_PATH_MAX < 4096) ? 4096 : _XOPEN_PATH_MAX +#endif + #ifndef SLBT_USE_FORK #ifndef SLBT_USE_VFORK #ifndef SLBT_USE_POSIX_SPAWN -- cgit v1.2.3