From f761ab0586353da67bf7b3ae395ad7b090cd904f Mon Sep 17 00:00:00 2001 From: Colin Marc Date: Tue, 11 Feb 2025 01:39:38 +0100 Subject: 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 is enough to get slang compiling on musl systems like Alpine Linux. Fixes #6330. Co-authored-by: Yong He --- source/core/slang-stream.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'source/core/slang-stream.cpp') 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 #include namespace Slang -- cgit v1.2.3