SDL_x11sym.h: add symbols for _XGetRequest
authorAndreas Müller <schnitzeltony@googlemail.com>
Sun, 10 Mar 2013 21:43:48 +0000 (22:43 +0100)
committernotaz <notasas@gmail.com>
Mon, 11 Mar 2013 15:05:41 +0000 (17:05 +0200)
While intoducing to yocto few libraries complain:

| /home/tmp/oe-core-eglibc/sysroots/overo/usr/lib/libSDL.so: undefined reference to `_XGetRequest'

This is a backport from libsdl-1.2.15.

Signed-off-by: Andreas M?ller <schnitzeltony@googlemail.com>
src/video/x11/SDL_x11sym.h

index 3dfa146..f1e7841 100644 (file)
@@ -169,6 +169,12 @@ SDL_X11_SYM(int,_XData32,(Display *dpy,register long *data,unsigned len),(dpy,da
 SDL_X11_SYM(void,_XRead32,(Display *dpy,register long *data,long len),(dpy,data,len),)
 #endif
 
+/*
+ * libX11 1.4.99.1 added _XGetRequest, and macros use it behind the scenes.
+ */
+SDL_X11_MODULE(XGETREQUEST)
+SDL_X11_SYM(void *,_XGetRequest,(Display* a,CARD8 b,size_t c),(a,b,c),return)
+
 /*
  * These only show up on some variants of Unix.
  */