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

Yaakov (Cygwin/X) yselkowitz at users.sourceforge.net
Mon Oct 22 10:49:11 PDT 2012


On Mon, 2012-10-22 at 16:07 +0100, Jon TURNEY wrote:
> 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

This also requires adding -lws2_32 as with libXt.


Yaakov
Cygwin/X




More information about the xorg-devel mailing list