From e993ded7c8a8078d28d4d4d3d2ba93cb9edce71f Mon Sep 17 00:00:00 2001 From: Alessandro De Blasis Date: Tue, 31 Mar 2026 02:40:33 +0200 Subject: [PATCH] ghostty.h: guard sys/types.h include for MSVC sys/types.h is a POSIX header that does not exist on MSVC. Move it into the #else branch of the existing _MSC_VER guard that already provides ssize_t via BaseTsd.h. --- include/ghostty.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/ghostty.h b/include/ghostty.h index 66dc94a15..afc20bb3f 100644 --- a/include/ghostty.h +++ b/include/ghostty.h @@ -15,11 +15,12 @@ extern "C" { #include #include #include -#include #ifdef _MSC_VER #include typedef SSIZE_T ssize_t; +#else +#include #endif //-------------------------------------------------------------------