When including 'wine/port.h', include it first.
Remove redundant 'config.h' includes.
diff --git a/scheduler/client.c b/scheduler/client.c
index cda568d..f467948 100644
--- a/scheduler/client.c
+++ b/scheduler/client.c
@@ -4,7 +4,7 @@
* Copyright (C) 1998 Alexandre Julliard
*/
-#include "config.h"
+#include "wine/port.h"
#include <assert.h>
#include <ctype.h>
@@ -30,7 +30,6 @@
#include <unistd.h>
#include <stdarg.h>
-#include "wine/port.h"
#include "thread.h"
#include "wine/server.h"
#include "winerror.h"
diff --git a/scheduler/sysdeps.c b/scheduler/sysdeps.c
index 9073cf7..b931e77 100644
--- a/scheduler/sysdeps.c
+++ b/scheduler/sysdeps.c
@@ -4,7 +4,7 @@
* Copyright 1998 Alexandre Julliard
*/
-#include "config.h"
+#include "wine/port.h"
#include <signal.h>
#include <stdio.h>
@@ -20,7 +20,6 @@
#ifdef HAVE_UCONTEXT_H
# include <ucontext.h>
#endif
-#include "wine/port.h"
#include "thread.h"
#include "wine/server.h"
#include "winbase.h"
diff --git a/scheduler/thread.c b/scheduler/thread.c
index 0a413ec..b3ce6f3 100644
--- a/scheduler/thread.c
+++ b/scheduler/thread.c
@@ -4,7 +4,7 @@
* Copyright 1996 Alexandre Julliard
*/
-#include "config.h"
+#include "wine/port.h"
#include <assert.h>
#include <fcntl.h>
@@ -14,7 +14,6 @@
#endif
#include <unistd.h>
#include "wine/winbase16.h"
-#include "wine/port.h"
#include "thread.h"
#include "task.h"
#include "module.h"