Use correct names for dlopen()ed files on Cygwin
authorYaakov Selkowitz <yselkowi@redhat.com>
Sat, 11 Jun 2016 14:53:50 +0000 (14:53 +0000)
committerJon Turney <jon.turney@dronecode.org.uk>
Fri, 15 Jul 2016 18:46:54 +0000 (19:46 +0100)
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Reviewed-by: Jon Turney <jon.turney@dronecode.org.uk>
src/egl/drivers/dri2/egl_dri2.c
src/gallium/auxiliary/util/u_format_s3tc.c
src/mesa/main/texcompress_s3tc.c

index bfde6400a5afe7893b6f849959bda747f66f66cb..ac2be86272674a2846036719e829e6ada3ee67f5 100644 (file)
@@ -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
index cd3e165d3f00fdbc241e431d07aaad82158884ee..8c4f2150bef57240ec4aa9a1a1e7782ac72d413f 100644 (file)
@@ -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
index 7ddb0ed38c0b45463eb202e54c04929217c57e69..992ad058bf300f53230febced3ea91ae6211f221 100644 (file)
@@ -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