Commit 5d303867 authored by Yaakov Selkowitz's avatar Yaakov Selkowitz Committed by Jon Turney

Use correct names for dlopen()ed files on Cygwin

Signed-off-by: default avatarYaakov Selkowitz <yselkowi@redhat.com>
Reviewed-by: Jon Turney's avatarJon Turney <jon.turney@dronecode.org.uk>
parent 3c18c16e
......@@ -2733,6 +2733,8 @@ dri2_load(_EGLDriver *drv)
const char *libname = "libglapi.so";
#elif defined(__APPLE__)
const char *libname = "libglapi.0.dylib";
#elif defined(__CYGWIN__)
const char *libname = "cygglapi-0.dll";
#else
const char *libname = "libglapi.so.0";
#endif
......
......@@ -32,6 +32,8 @@
#if defined(_WIN32) || defined(WIN32)
#define DXTN_LIBNAME "dxtn.dll"
#elif defined(__CYGWIN__)
#define DXTN_LIBNAME "cygtxc_dxtn.dll"
#elif defined(__APPLE__)
#define DXTN_LIBNAME "libtxc_dxtn.dylib"
#else
......
......@@ -46,6 +46,8 @@
#define DXTN_LIBNAME "dxtn.dll"
#define RTLD_LAZY 0
#define RTLD_GLOBAL 0
#elif defined(__CYGWIN__)
#define DXTN_LIBNAME "cygtxc_dxtn.dll"
#else
#define DXTN_LIBNAME "libtxc_dxtn.so"
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment