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

Summary: SDL_x11messagebox.c needs including X11/keysym.h
Product: SDL Reporter: Ozkan Sezer <sezeroz>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: All   
OS: Linux   

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