From a9b1d23f7981424a7fef600d50c8a1e14e93d9d4 Mon Sep 17 00:00:00 2001 From: William Bell <62452284+Ugric@users.noreply.github.com> Date: Tue, 21 Oct 2025 21:43:02 +0100 Subject: [PATCH] fix windows build --- src/shell.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/shell.c b/src/shell.c index e3b988f..095c499 100644 --- a/src/shell.c +++ b/src/shell.c @@ -43,7 +43,11 @@ FILE *fmemopen(void *buf, size_t size, const char *mode) { return tmp; } +// Only define ssize_t if it doesn't already exist +#ifndef _SSIZE_T_DEFINED typedef long ssize_t; +#define _SSIZE_T_DEFINED +#endif ssize_t getline(char **lineptr, size_t *n, FILE *stream) { if (!lineptr || !n || !stream) return -1;