From: Clifford Wolf Date: Tue, 11 Oct 2016 10:12:09 +0000 (+0200) Subject: define PATH_MAX if not defined by limits.h X-Git-Tag: yosys-0.7~38 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=59508c99b438baff1cbd57ee86ed7b304b349220;p=yosys.git define PATH_MAX if not defined by limits.h --- diff --git a/kernel/yosys.h b/kernel/yosys.h index aab6b5844..ae73146b8 100644 --- a/kernel/yosys.h +++ b/kernel/yosys.h @@ -64,6 +64,7 @@ #include #include #include +#include #ifndef _YOSYS_ # error It looks like you are trying to build Yosys without the config defines set. \ @@ -100,6 +101,10 @@ # endif #endif +#ifndef PATH_MAX +# define PATH_MAX 4096 +#endif + #define PRIVATE_NAMESPACE_BEGIN namespace { #define PRIVATE_NAMESPACE_END } #define YOSYS_NAMESPACE_BEGIN namespace Yosys {