[PATCH lib/libXaw] Include winsock header on WIN32 to provide fd_set etc.

Jon TURNEY jon.turney at dronecode.org.uk
Mon Oct 22 08:07:26 PDT 2012


From: Ryan Pavlik <rpavlik at iastate.edu>

Signed-off-by: Ryan Pavlik <rpavlik at iastate.edu>
Reviewed-by: Jon TURNEY <jon.turney at dronecode.org.uk>
---
 src/TextAction.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/TextAction.c b/src/TextAction.c
index 7b87ce4..74446d6 100644
--- a/src/TextAction.c
+++ b/src/TextAction.c
@@ -47,6 +47,10 @@ in this Software without prior written authorization from The Open Group.
 #include "Private.h"
 #include "XawI18n.h"
 
+#ifdef _WIN32
+#include <X11/Xwinsock.h>
+#endif
+
 #define SrcScan			XawTextSourceScan
 #define FindDist		XawTextSinkFindDistance
 #define FindPos			XawTextSinkFindPosition
-- 
1.7.9



More information about the xorg-devel mailing list