We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3010 - SDL_x11messagebox.c needs including X11/keysym.h
Summary: SDL_x11messagebox.c needs including X11/keysym.h
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: All Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-13 19:48 UTC by Ozkan Sezer
Modified: 2015-06-13 20:35 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ozkan Sezer 2015-06-13 19:48:30 UTC
SDL_x11messagebox.c needs including <X11/keysym.h> otherwise XK_Escape,
etc might not be available to it. Seen this with x.org-x11-6.8.2.
Trivial patch below.

diff -r a8140c580b85 src/video/x11/SDL_x11messagebox.c
--- a/src/video/x11/SDL_x11messagebox.c	Sat Jun 13 10:47:55 2015 -0700
+++ b/src/video/x11/SDL_x11messagebox.c	Sat Jun 13 22:10:14 2015 +0300
@@ -28,6 +28,7 @@
 #include "SDL_x11dyn.h"
 #include "SDL_assert.h"
 
+#include <X11/keysym.h>
 #include <locale.h>
Comment 1 Sam Lantinga 2015-06-13 20:35:00 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/dd3c3024723c