diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2016-08-29 19:04:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-29 19:04:13 +0200 |
commit | ecaa8844ca4dd824a848870f59aac03958e97549 (patch) | |
tree | 03ddcae623a4184149e013ea62d41f14ecd38b23 /platform | |
parent | 23cb5efe7ca991649e6e865d1e23754dc0de44c9 (diff) | |
parent | f59860f4649a14dfd0d425590d226c55842f7a1c (diff) |
Merge pull request #6116 from Hinsbart/xrandr_so
x11: Use proper sonames for loading libXrandr.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/x11/os_x11.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp index 490030398e..9a2d610e78 100644 --- a/platform/x11/os_x11.cpp +++ b/platform/x11/os_x11.cpp @@ -127,10 +127,10 @@ void OS_X11::initialize(const VideoMode& p_desired,int p_video_driver,int p_audi int xrandr_minor = 0; int event_base, error_base; xrandr_ext_ok = XRRQueryExtension(x11_display,&event_base, &error_base); - xrandr_handle = dlopen("libXrandr.so", RTLD_LAZY); - err = dlerror(); + xrandr_handle = dlopen("libXrandr.so.2", RTLD_LAZY); if (!xrandr_handle) { - fprintf(stderr, "could not load libXrandr.so, Error: %s\n", err); + err = dlerror(); + fprintf(stderr, "could not load libXrandr.so.2, Error: %s\n", err); } else { XRRQueryVersion(x11_display, &xrandr_major, &xrandr_minor); |