Problems with SDL 1.2.10 build

My system is Linux RedHat 8.0.

I’ve a problem in SDL 1.2.10 build, I get the following error:

gcc -O2 -I./include -D_GNU_SOURCE=1 -I/usr/include/kde/artsc
./src/video/x11/SDL_x11dyn.c -fPIC -DPIC -o build/.libs/SDL_x11dyn.o
In file included from src/video/x11/SDL_x11dyn.c:93:
src/video/x11/SDL_x11sym.h:187: conflicting types for XRRSetScreenConfig' /usr/X11R6/include/X11/extensions/Xrandr.h:93: previous declaration ofXRRSetScreenConfig’

Looking at the sources it seems there is a different prototype for

Status XRRSetScreenConfig (Display *dpy,
XRRScreenConfiguration *config,
Drawable draw,
int size_index,
int visual_group_index,
Rotation rotation,
Time timestamp);

SDL_X11_SYM(Status,XRRSetScreenConfig,(Display *dpy,
XRRScreenConfiguration *config, Drawable draw, int size_index, Rotation
rotation, Time

I’ve added the field visual_group_index to the SDL file but I wonder if
this SDL recompile will be compatibile with other distros… (this is
what I want to do, a binary shared library to be distributed as runtime
for an application that should work with every distribution of the last
3/4 years).