Hi,

Here's a patch attached that supports using sched.h in MSVC. I encountered
this in a project that included
sched.h, but was unused. Let me know if the patch makes sense.

Isuru
From c69fc5479613ee1f651c6438a2635b4f9b45bd34 Mon Sep 17 00:00:00 2001
From: Isuru Fernando <[email protected]>
Date: Mon, 26 Aug 2024 08:47:46 -0500
Subject: [PATCH] use pthread_compat.h in sched.h

---
 mingw-w64-libraries/winpthreads/include/sched.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/mingw-w64-libraries/winpthreads/include/sched.h b/mingw-w64-libraries/winpthreads/include/sched.h
index bf2848762..14e4c87f5 100644
--- a/mingw-w64-libraries/winpthreads/include/sched.h
+++ b/mingw-w64-libraries/winpthreads/include/sched.h
@@ -30,6 +30,8 @@
 
 #include <sys/timeb.h>
 
+#include "pthread_compat.h"
+
 #ifndef WIN_PTHREADS_SCHED_H
 #define WIN_PTHREADS_SCHED_H
 
-- 
2.44.0

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to