Mesa (master): pipe_loader_sw: Don't invoke Unix close() on Windows.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Fri Oct 14 15:53:35 UTC 2016
Module: Mesa
Branch: master
Commit: c6d17701c823f10ce6d04e4ccb5df09b0186bfbd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c6d17701c823f10ce6d04e4ccb5df09b0186bfbd
Author: Jose Fonseca <jfonseca at vmware.com>
Date: Fri Sep 23 12:55:18 2016 +0100
pipe_loader_sw: Don't invoke Unix close() on Windows.
Trivial.
---
src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c b/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c
index e7fa974..0fbc78e 100644
--- a/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c
+++ b/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c
@@ -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;
More information about the mesa-commit
mailing list