Bug 62365

Summary: patch needed to build xkbcomp natively on Windows with MinGW
Product: xorg Reporter: Laura <lmemsm>
Component: App/xkbcompAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium Keywords: patch
Version: unspecified   
Hardware: x86 (IA32)   
OS: Windows (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Patch to allow successful build on Windows. none

Description Laura 2013-03-15 11:21:26 UTC
Created attachment 76556 [details]
Patch to allow successful build on Windows.

Tried building xkbcomp version 1.2.4 natively on Windows using MinGW32 (version 4.7.2) from www.mingw.org.  It fails to build as is.  Am attaching a patch that allows it to build successfully.  This fixes an issue with the _exit not declared and a problem with the Windows headers.
Comment 1 Alan Coopersmith 2013-07-13 07:32:43 UTC
The listing.c portion appears to already be covered in git by this commit:
http://cgit.freedesktop.org/xorg/app/xkbcomp/commit/?id=bd1103ef3cfef9cfed645566f944a69e7ca568b4

The addition of stdlib.h to xkbscan.c looks good to me, so I've pushed it
as well:

To ssh://git.freedesktop.org/git/xorg/app/xkbcomp
   ed582f4..1cd5c50  master -> master

Thanks for the report & fixes!   (And let us know if the other patch doesn't
solve the problem for you.)

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.