From 45d4f295d50c1ded6de43323c38293a1389e1da6 Mon Sep 17 00:00:00 2001
From: Ulrich Weigand <weigand@immd1.informatik.uni-erlangen.de>
Date: Thu, 11 Jan 2001 00:53:07 +0000
Subject: [PATCH] Work around problems on Solaris if config.h is not included.

---
 include/winsock.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/include/winsock.h b/include/winsock.h
index 5f8aa343de0..0283db88e8d 100644
--- a/include/winsock.h
+++ b/include/winsock.h
@@ -10,6 +10,14 @@
 #ifndef RC_INVOKED
 #include <sys/types.h>
 
+#ifndef __WINE__
+#ifdef __svr4__
+#ifndef HAVE_SYS_SOCKET_H
+#define HAVE_SYS_SOCKET_H
+#endif /* HAVE_SYS_SOCKET_H */
+#endif /* __svr4__ */
+#endif /* __WINE__ */
+
 /* Solaris uses these macro names */
 #undef FSHIFT
 #undef TRANSPARENT
-- 
GitLab