Alexandre Julliard : include: Also define gethostname for msvcrt builds.
Alexandre Julliard
julliard at winehq.org
Fri Sep 25 14:52:54 CDT 2020
Module: wine
Branch: master
Commit: 4b96d1c6802d0acedcf5da8355c1ca40321a6aea
URL: https://source.winehq.org/git/wine.git/?a=commit;h=4b96d1c6802d0acedcf5da8355c1ca40321a6aea
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri Sep 25 12:41:50 2020 +0200
include: Also define gethostname for msvcrt builds.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
include/winsock.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/winsock.h b/include/winsock.h
index a8bb35a4c4..cafac1a172 100644
--- a/include/winsock.h
+++ b/include/winsock.h
@@ -1053,7 +1053,7 @@ int WINAPI WS(setsockopt)(SOCKET,int,int,const char*,int);
int WINAPI WS(shutdown)(SOCKET,int);
SOCKET WINAPI WS(socket)(int,int,int);
-#if defined(__MINGW32__) || defined (_MSC_VER)
+#if defined(__MINGW32__) || defined (_MSC_VER) || defined(__WINE_USE_MSVCRT)
/* gethostname is not defined on Unix because of conflicts with unistd.h */
int WINAPI WS(gethostname)(char*,int);
#endif
More information about the wine-cvs
mailing list