summaryrefslogtreecommitdiffstats
path: root/source/core
diff options
context:
space:
mode:
authorJohn Zupin <johnzupin@gmail.com>2025-09-18 22:17:25 -0600
committerGitHub <noreply@github.com>2025-09-19 04:17:25 +0000
commit391d35d63e83293855180b1cce061ca6b73a8b56 (patch)
tree5373f964c8e9c2ad18b7722b72d6fccde00b03fb /source/core
parented9f42361e2f07a79fde39ded9e57473d5fac39f (diff)
include limits.h in slang-platform.cpp (#8473)
fixes https://github.com/shader-slang/slang/issues/8472 Fixes an issue with GCC 9.4.0 on Ubuntu 20.04, it will throw an error about PATH_MAX not being declared. Co-authored-by: Mukund Keshava <mkeshava@nvidia.com>
Diffstat (limited to 'source/core')
-rw-r--r--source/core/slang-platform.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/core/slang-platform.cpp b/source/core/slang-platform.cpp
index 75c1b96cd..f02534e7c 100644
--- a/source/core/slang-platform.cpp
+++ b/source/core/slang-platform.cpp
@@ -20,6 +20,7 @@
#endif
#if SLANG_LINUX_FAMILY
+#include <limits.h>
#include <unistd.h>
#endif