summaryrefslogtreecommitdiff
path: root/kernel/yosys.h
diff options
context:
space:
mode:
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 aab6b584..ae73146b 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 {