From: Stefan Reinauer Date: Fri, 22 May 2026 14:13:07 +0000 (-0700) Subject: bsdsocket: expose Unix target hooks X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=c9d80df9a296bd71b3cae754c2e55fc3f2a68594;p=francis%2Fwinuae.git bsdsocket: expose Unix target hooks Add the shared declarations needed for a Unix bsdsocket.library target backend. --- 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 };