From fc6aa583cf5e94323921c3709cd0b20809d39c90 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Wed, 6 Jul 2016 05:51:29 +0200 Subject: [PATCH] server-Realtime_Priority: Include stdarg.h in server/scheduler.c. --- ...-to-implement-priority-levels-throug.patch | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/patches/server-Realtime_Priority/0001-wineserver-Draft-to-implement-priority-levels-throug.patch b/patches/server-Realtime_Priority/0001-wineserver-Draft-to-implement-priority-levels-throug.patch index 9d1efdeb..48f40aec 100644 --- a/patches/server-Realtime_Priority/0001-wineserver-Draft-to-implement-priority-levels-throug.patch +++ b/patches/server-Realtime_Priority/0001-wineserver-Draft-to-implement-priority-levels-throug.patch @@ -1,4 +1,4 @@ -From bd97eaf2c4d88877bca22515ad4aaec04ce5d7c4 Mon Sep 17 00:00:00 2001 +From c7c204c978e86e796091166249bcf077835efab2 Mon Sep 17 00:00:00 2001 From: Joakim Hernberg Date: Tue, 31 Mar 2015 20:58:20 +0200 Subject: wineserver: Draft to implement priority levels through POSIX @@ -12,14 +12,14 @@ Changes by Sebastian Lackner : --- server/Makefile.in | 1 + server/main.c | 2 + - server/scheduler.c | 162 +++++++++++++++++++++++++++++++++++++++++++++++++++++ + server/scheduler.c | 163 +++++++++++++++++++++++++++++++++++++++++++++++++++++ server/thread.c | 3 + server/thread.h | 5 ++ - 5 files changed, 173 insertions(+) + 5 files changed, 174 insertions(+) create mode 100644 server/scheduler.c diff --git a/server/Makefile.in b/server/Makefile.in -index 19a4fac..0fe5cbb 100644 +index 75ba199..e539110 100644 --- a/server/Makefile.in +++ b/server/Makefile.in @@ -30,6 +30,7 @@ C_SRCS = \ @@ -52,10 +52,10 @@ index 7aed338..ee8cadd 100644 init_registry(); diff --git a/server/scheduler.c b/server/scheduler.c new file mode 100644 -index 0000000..bc2857e +index 0000000..2fca966 --- /dev/null +++ b/server/scheduler.c -@@ -0,0 +1,162 @@ +@@ -0,0 +1,163 @@ +/* + * Scheduler priority management + * @@ -82,6 +82,7 @@ index 0000000..bc2857e +#define _GNU_SOURCE /* for SCHED_BATCH, SCHED_IDLE */ +#include +#include ++#include +#ifdef HAVE_SYS_RESOURCE_H +# include +#endif @@ -219,10 +220,10 @@ index 0000000..bc2857e + +#endif diff --git a/server/thread.c b/server/thread.c -index 906b79d..22c22d5 100644 +index 5f8405b..b1c6616 100644 --- a/server/thread.c +++ b/server/thread.c -@@ -482,7 +482,10 @@ static void set_thread_info( struct thread *thread, +@@ -491,7 +491,10 @@ static void set_thread_info( struct thread *thread, if ((req->priority >= min && req->priority <= max) || req->priority == THREAD_PRIORITY_IDLE || req->priority == THREAD_PRIORITY_TIME_CRITICAL) @@ -234,10 +235,10 @@ index 906b79d..22c22d5 100644 set_error( STATUS_INVALID_PARAMETER ); } diff --git a/server/thread.h b/server/thread.h -index 996d95b..01bcc59 100644 +index 2821991..92a0ba9 100644 --- a/server/thread.h +++ b/server/thread.h -@@ -145,4 +145,9 @@ static inline void set_win32_error( unsigned int err ) { set_error( 0xc0010000 | +@@ -146,4 +146,9 @@ static inline void set_win32_error( unsigned int err ) { set_error( 0xc0010000 | static inline thread_id_t get_thread_id( struct thread *thread ) { return thread->id; } @@ -248,5 +249,5 @@ index 996d95b..01bcc59 100644 + #endif /* __WINE_SERVER_THREAD_H */ -- -2.3.5 +2.8.0