aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/yosys.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2016-10-11 12:12:09 +0200
committerClifford Wolf <clifford@clifford.at>2016-10-11 12:12:09 +0200
commit59508c99b438baff1cbd57ee86ed7b304b349220 (patch)
treef535c952500b33eb7e393836281b291beab7e5ed /kernel/yosys.h
parent11130d581dddaa78e5b5563416fe5d3d2b649cdd (diff)
downloadyosys-59508c99b438baff1cbd57ee86ed7b304b349220.tar.gz
yosys-59508c99b438baff1cbd57ee86ed7b304b349220.tar.bz2
yosys-59508c99b438baff1cbd57ee86ed7b304b349220.zip
define PATH_MAX if not defined by limits.h
Diffstat (limited to 'kernel/yosys.h')
-rw-r--r--kernel/yosys.h5
1 files changed, 5 insertions, 0 deletions
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 <string.h>
#include <stdint.h>
#include <stdio.h>
+#include <limits.h>
#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 {