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.
pull/12010/head
Alessandro De Blasis 2026-03-31 02:40:33 +02:00
parent 3509ccf78e
commit e993ded7c8
No known key found for this signature in database
GPG Key ID: EF3F4C75518B2F8D
1 changed files with 2 additions and 1 deletions

View File

@ -15,11 +15,12 @@ extern "C" {
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <sys/types.h>
#ifdef _MSC_VER
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
#else
#include <sys/types.h>
#endif
//-------------------------------------------------------------------