xload: Changes to 'master'

Jon TURNEY jturney at kemper.freedesktop.org
Fri May 2 12:19:17 PDT 2014


 get_load.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 23f4a318f3df9823aa2076616a7a06b3972e8d6b
Author: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
Date:   Wed Dec 18 18:07:47 2013 +0000

    Use wrapped windows header to fix compilation for Cygwin
    
    xload uses a windows-specific interface to obtain the load average, as
    getloadavg() is not implemented for Cygwin.
    
    Including some versions of windows.h after including X11 headers can lead to
    compilation errors as 'Status' is used as a type name in Xlib.h, but a parameter
    or memeber name in Windows headers.
    
    Include X11/Xwindows.h rather than windows.h directly, which wraps it in a such
    way to avoid any conflict with X11 headers.
    
    In file included from /usr/include/w32api/minwindef.h:146:0,
                     from /usr/include/w32api/windef.h:8,
                     from /usr/include/w32api/windows.h:69,
                     from /jhbuild/checkout/xorg/app/xload/get_load.c:53:
    /usr/include/w32api/winnt.h:4951:15: error: two or more data types in declaration specifiers
           DWORD64 Status;
                   ^
    In file included from /usr/include/w32api/minwindef.h:146:0,
                     from /usr/include/w32api/windef.h:8,
                     from /usr/include/w32api/windows.h:69,
                     from /jhbuild/checkout/xorg/app/xload/get_load.c:53:
    /usr/include/w32api/winnt.h:5090:13: error: two or more data types in declaration specifiers
           DWORD Status;
                 ^
    
    Signed-off-by: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
    Reviewed-by: Jon TURNEY <jon.turney at dronecode.org.uk>



More information about the xorg-commit mailing list