<AWT Dev> [PATCH FOR APPROVAL]: Fix broken build on newer versions of X11 (libXext >= 1.1.0)

Andrew John Hughes gnu_andrew at member.fsf.org
Tue Nov 3 11:20:44 PST 2009

With the new version of X11 (specifically libXext >= 1.1), the XShm.h
header has been refactored.

As a result, the build fails on awt_GraphicsEnv.c.  This simple patch:


fixes the issue, without affecting older versions.  It's trivial, but
very important; this new X11 is already in Gentoo, it'll be in F12
(where we first discovered this issue), and it's no doubt heading to
an Ubuntu near you soon.

The patch was contributed by Diego Pettenò <flameeyes at gmail.com>, who
I'm informed has signed the SCA.

Does this look ok? If so, can I have a bug ID to push this to the
awt-gate (or wherever is appropriate)?

Andrew :-)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK

PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8

More information about the awt-dev mailing list