From c9d80df9a296bd71b3cae754c2e55fc3f2a68594 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Fri, 22 May 2026 07:13:07 -0700 Subject: [PATCH] bsdsocket: expose Unix target hooks Add the shared declarations needed for a Unix bsdsocket.library target backend. --- include/bsdsocket.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/bsdsocket.h b/include/bsdsocket.h index 5fbe31d9..d59ce3f9 100644 --- a/include/bsdsocket.h +++ b/include/bsdsocket.h @@ -17,6 +17,8 @@ extern int log_bsd; +typedef struct TrapContext TrapContext; + #define ISBSDTRACE (log_bsd || BSD_TRACING_ENABLED) #define BSDTRACE(x) do { if (ISBSDTRACE) { write_log x; } } while(0) @@ -35,6 +37,10 @@ extern void deinit_socket_layer (void); #ifdef _WIN32 #define SOCKET_TYPE SOCKET #else +#ifndef INVALID_SOCKET +#define INVALID_SOCKET (-1) +#endif +typedef int SOCKET; #define SOCKET_TYPE int #endif @@ -97,6 +103,7 @@ struct socketbase { uae_u32 sets [3]; uae_u32 timeout; uae_u32 sigmp; + TrapContext *context; #endif }; -- 2.47.3