GNOME Bugzilla – Bug 106196
gnome-accessibility-keyboard-properties.c fails to compile on Solaris 8/9 Intel
Last modified: 2004-12-22 21:47:04 UTC
Solaris 8 and 9 on Intel, gcc-3.2.1, openwindows includes the file capplets/accessibility/keyboard/gnome-accessibility-keyboard-properties.c fails to compile because the include file <X11/XKBlib.h> expects <X11/Xlib.h> to be included. I added this conditional flag to include <X11/Xlib.h> and the compile completed. This patch fixed the problem. gdiff -Nru capplets/accessibility/keyboard/gnome-accessibility-keyboard-properties.c.ORIG capplets> --- capplets/accessibility/keyboard/gnome-accessibility-keyboard-properties.c.ORIG 2003-02-15 16:09:36.463921000 -0500 +++ capplets/accessibility/keyboard/gnome-accessibility-keyboard-properties.c 2003-02-15 14:55:47.751024000 -0500 @@ -33,6 +33,9 @@ #include "accessibility-keyboard.h" #ifdef HAVE_X11_EXTENSIONS_XKB_H +# ifdef __sun +# include <X11/Xlib.h> +# endif # include <X11/XKBlib.h> # include <X11/extensions/XKBstr.h> # include <gdk/gdk.h>
*** Bug 108850 has been marked as a duplicate of this bug. ***
Commited to both branches.