pipe_loader_sw: Don't invoke Unix close() on Windows.
authorJose Fonseca <jfonseca@vmware.com>
Fri, 23 Sep 2016 11:55:18 +0000 (12:55 +0100)
committerJose Fonseca <jfonseca@vmware.com>
Fri, 14 Oct 2016 15:29:04 +0000 (16:29 +0100)
Trivial.

src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c

index e7fa974e4191ee08ec7cb80ce3d088cd6633f660..0fbc78e38187219d44f319024db602a8b6fc1582 100644 (file)
@@ -277,8 +277,10 @@ pipe_loader_sw_release(struct pipe_loader_device **dev)
       util_dl_close(sdev->lib);
 #endif
 
+#ifdef HAVE_PIPE_LOADER_KMS
    if (sdev->fd != -1)
       close(sdev->fd);
+#endif
 
    FREE(sdev);
    *dev = NULL;