]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
qemuvga: make glue header usable on Unix
authorStefan Reinauer <stefan.reinauer@coreboot.org>
Sun, 17 May 2026 16:09:02 +0000 (09:09 -0700)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Tue, 2 Jun 2026 23:01:22 +0000 (16:01 -0700)
Include the standard Unix type declarations needed by qemuuaeglue.h
and keep the local ssize_t typedef restricted to MSVC builds.

qemuvga/qemuuaeglue.h

index 7c32f14b86b675593c2ae2207a81706991eae637..9f11a6c2dd415f7d96a8acba61079a58ee0c9a82 100644 (file)
@@ -2,7 +2,11 @@
 #include "uae/likely.h"
 #include <stdint.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
+#ifndef _MSC_VER
+#include <sys/types.h>
+#endif
 #include "sysconfig.h"
 
 #ifdef DEBUGGER
@@ -21,7 +25,9 @@ extern void write_log (const char *, ...);
 #define tostring(s)    #s
 #endif
 
+#ifdef _MSC_VER
 typedef int ssize_t;
+#endif
 
 #ifdef _MSC_VER
 #include <windows.h>
@@ -405,4 +411,3 @@ extern uint64_t lsi_mmio_read(void *opaque, hwaddr addr, unsigned size);
 
 typedef void *qemu_irq;
 typedef void* SysBusDevice;
-