--- a/ui/common/message.h Sat Dec 06 18:17:07 2025 +0100 +++ b/ui/common/message.h Sun Dec 07 10:02:27 2025 +0100 @@ -29,11 +29,14 @@ #ifndef UIC_MESSAGE_H #define UIC_MESSAGE_H + #include <cx/string.h> #include <cx/json.h> #include <cx/buffer.h> +#ifndef _WIN32 #include <pthread.h> +#endif #ifdef __cplusplus @@ -57,11 +60,13 @@ UiMessageHandler handler; int in; int out; +#ifndef _WIN32 pthread_t in_thread; pthread_t out_thread; pthread_mutex_t queue_lock; pthread_mutex_t avlbl_lock; pthread_cond_t available; +#endif CxBuffer *outbuf; int stop; } UiSimpleMessageHandler;