Bug 62365 - patch needed to build xkbcomp natively on Windows with MinGW
Summary: patch needed to build xkbcomp natively on Windows with MinGW
Alias: None
Product: xorg
Classification: Unclassified
Component: App/xkbcomp (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
Keywords: patch
Depends on:
Reported: 2013-03-15 11:21 UTC by Laura
Modified: 2013-07-13 07:32 UTC (History)
0 users

See Also:
i915 platform:
i915 features:

Patch to allow successful build on Windows. (643 bytes, text/plain)
2013-03-15 11:21 UTC, Laura
no flags Details

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:

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.