From 9af5e6910790d4d39c3c534dd6a464e89f4ef139 Mon Sep 17 00:00:00 2001
From: Patrik Stridvall <ps@leissner.se>
Date: Sat, 11 Dec 1999 23:02:15 +0000
Subject: [PATCH] Fixed some issues found by winapi_check.

---
 dlls/oleaut32/oleaut32.spec | 2 +-
 misc/port.c                 | 4 +++-
 tools/bin2res.c             | 4 +++-
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/dlls/oleaut32/oleaut32.spec b/dlls/oleaut32/oleaut32.spec
index d536f3aaecf..3aa95a3eff0 100644
--- a/dlls/oleaut32/oleaut32.spec
+++ b/dlls/oleaut32/oleaut32.spec
@@ -155,7 +155,7 @@ type win32
 198 stub VarDecFromDisp
 199 stub VarDecFromBool
 200 stub GetErrorInfo
-201 stub SetErrorInfo
+201 stdcall SetErrorInfo(long ptr) SetErrorInfo
 202 stub CreateErrorInfo
 205 stdcall VarI2FromI1(long ptr) VarI2FromI1
 206 stdcall VarI2FromUI2(long ptr) VarI2FromUI2
diff --git a/misc/port.c b/misc/port.c
index d75d38b8801..b1bc48b7fe8 100644
--- a/misc/port.c
+++ b/misc/port.c
@@ -4,7 +4,7 @@
  * Copyright 1996 Alexandre Julliard
  */
 
-#include "wine/port.h"
+#include "config.h"
 
 #ifdef __BEOS__
 #include <be/kernel/fs_info.h>
@@ -33,6 +33,8 @@
 # include <pty.h>
 #endif
 
+#include "wine/port.h"
+
 /***********************************************************************
  *		usleep
  */
diff --git a/tools/bin2res.c b/tools/bin2res.c
index 912ba8f7805..b121da01f2d 100644
--- a/tools/bin2res.c
+++ b/tools/bin2res.c
@@ -23,7 +23,9 @@
 
 #include <fcntl.h>
 #include <unistd.h>
-#include <sys/mman.h>
+#ifdef HAVE_SYS_MMAN_H
+# include <sys/mman.h>
+#endif
 #include "winuser.h"
 
 extern char*   g_lpstrFileName;
-- 
GitLab