This fixes 2c94cdb453 on the Hurd, as
FD_SETSIZE is only 256, and so anyone using XFD_SETSIZE to iterate over
the contents of an fd_set will overrun the array.
Signed-off-by: James Clarke <jrtc27@jrtc27.com>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Commit 2c94cdb raised the number of file descriptors from 256 to 512
but only for non-WIN32 platforms.
The definition of XFD_SETSIZE being duplicated, we need to do the same
for WIN32 builds as well otherwise a newer X server trying to
use more than 256 clients would fail on that platform.
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
To allow up to 512 clients, the number of file descriptors being
monitored need to be increased accordingly.
Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Hopefully other compilers will start adopting this so we don't have to
maintain ever growing matrixes of compiler/version checks for all the
attributes we use.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
As noted in the comment in the file, X.Org controls the main X11 keysym
definitions, so adds new keysyms there, not in the XFree86 vendor space.
Reported-by: Gioele Barabucci <gioele@svario.it>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
MinGW-w64 w32api-headers 3.0.0 define WIN32 in some places they didn't before,
which causes this check to turn on for Cygwin, which is not wanted.
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Some of the bits I forget and have to dig out of the protocol spec
every few years when I need to know again.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
To get rid of the 'pointer' typedef, stop using it locally. That way,
when _XTYPEDEF_POINTER is defined before Xdefs.h is included, it won't
get defined and Xdefs.h will still compile.
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This fixes the build of libXt on *-*-mingw* with -Werror=implicit.
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Fix Automake warning: AC_OUTPUT should be used without arguments.
www.gnu.org/software/autoconf/manual/autoconf.html#Configuration-Files
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Unfortunately the Solaris Studio equivalent is a pragma taking the
function names as arguments, so doesn't translate cleanly into a
common macro form.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Adjust <windows.h> wrapping to work with MinGW-w64 as well MinGW.org
headers, which define BOOL in a different way.
Add some more comments on what we doing here.
v2: Make similar changes to Xwinsock.h, used for MinGW but not Cygwin.
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
Tested-by: Colin Harrison <colin.harrison@virgin.net>
g++ 4.6 & later on Solaris set the __STDC_VERSION__ define to indicate
C99 mode to expose C99/Unix03 functions in the system headers, even
though they don't recognize the C99 restrict keyword, as explained in
http://gcc.gnu.org/ml/gcc-patches/2010-05/msg01308.html
Thus we avoid using the restrict keyword here if __cplusplus is also
defined, falling back to the __GNUC__ case using __restrict__ instead.
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=51009
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Tested-by: Jonathan Perkin
Lenovo Thinkpad machines have a microphone mute in addition to the
standard audio output mute.
Signed-off-by: James M. Leddy <james.leddy@canonical.com>
Signed-off-by: James Cloos <cloos@jhcloos.com>
amd64-x32 ABI defines sizeof(long) == sizeof (void*) == 4
Noticed on build failure of libXmu:
libXmu-1.1.0/work/libXmu-1.1.0/src/EditresCom.c: In function '_XEditresGetStringValues':
libXmu-1.1.0/work/libXmu-1.1.0/src/EditresCom.c:2198:6: error: duplicate case value
libXmu-1.1.0/work/libXmu-1.1.0/src/EditresCom.c:2194:6: error: previously used here
More info about x32: https://sites.google.com/site/x32abi/
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Signed-off-by: James Cloos <cloos@jhcloos.com>
The former is an obsolete alias to the latter.
It may get removed in the future.
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
This patch adds the following mnemonic symbols:
XK_permille for U+2030 PER MILLE SIGN
XK_EZH for U+01B7 LATIN CAPITAL LETTER EZH
XK_ezh for U+0292 LATIN SMALL LETTER EZH
These are the last mnemonic symbols missing from the Finnish keyboard
layout. The characters are part of the Finnish standard, ezh is used
in Sami and permille sign is used commonly in Finland, probably in
other countries as well.
https://bugs.freedesktop.org/show_bug.cgi?id=19687
Signed-off-by: Marko Myllynen <myllynen@redhat.com>
Reviewed-by: Matt Dew <marcoz@osource.org>
Signed-off-by: James Cloos <cloos@jhcloos.com>
Define a new dead greek symbol for use in Dvorak-like Bepo keyboard layout.
FreeDesktop Bug 21475 <https://bugs.freedesktop.org/show_bug.cgi?id=21475>
Signed-off-by: Frédéric Boiteux <fboiteux@calistel.com>
Signed-off-by: James Cloos <cloos@jhcloos.com>
On certain tables, add top and bottom borders to table
header and a bottom border to the table. This matches
what those tables in the old pdfs looked like.
the <?dbfo keep-together='always'> prevents tables from
splitting across pages. Useful for tiny tables.
Converting the colwidth to a floating point,
IE, 1* -> 1.0* cleans up these build errors:
WARNING: table-layout="fixed" and column-width unspecified
=> falling back to proportional-column-width(1)
Signed-off-by: Matt Dew <marcoz@osource.org>
<title> or <funcdef> string it goes with.
2 - fix any <linkend>'s that were affected by 1.
3 - any <function> in the docs that has an actual funcdef,
will become an olink.
Signed-off-by: Matt Dew <marcoz@osource.org>
This element is not rendered by default on the title. A template
customization is required to display it.
X Window System does not have a product number.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>