diff options
| author | Colin Marc <hi@colinmarc.com> | 2025-02-11 01:39:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-10 16:39:38 -0800 |
| commit | f761ab0586353da67bf7b3ae395ad7b090cd904f (patch) | |
| tree | d3eb8380d1fea6460e0fb3946e814edd94c64bf1 | |
| parent | 94c458243cf95567ec8f152d07a8754dcbfa9c93 (diff) | |
Fix compilation on musl libc targets (#6334)
The musl libc replacement removed fopen64, fgetpos64, and other 64-bit
variants because it's 64-bit only. However, it does have the following
in its headers:
#define fgetpos64 fgetpos
Just importing <stdio.h> is enough to get slang compiling on musl
systems like Alpine Linux.
Fixes #6330.
Co-authored-by: Yong He <yonghe@outlook.com>
| -rw-r--r-- | source/core/slang-stream.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/core/slang-stream.cpp b/source/core/slang-stream.cpp index 6af3f959e..1b8468c04 100644 --- a/source/core/slang-stream.cpp +++ b/source/core/slang-stream.cpp @@ -5,6 +5,7 @@ #include "slang-io.h" #include "slang-process.h" +#include <stdio.h> #include <thread> namespace Slang |
