[PATCH 1/2 xload] Avoid excess Win32 includes on Cygwin

Yaakov (Cygwin/X) yselkowitz at users.sourceforge.net
Mon Oct 4 20:06:45 PDT 2010


From: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>

Fixes compilation errors due to recent w32api <winspool.h>, which is
not needed to compile xload.

Signed-off-by: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
---
 get_load.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/get_load.c b/get_load.c
index 1439090..551a7a8 100644
--- a/get_load.c
+++ b/get_load.c
@@ -52,6 +52,7 @@ from the X Consortium.
 #include "xload.h"
 
 #if defined(__CYGWIN__)
+#define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 typedef struct {
   DWORD stat;
-- 
1.7.1



More information about the xorg-devel mailing list