summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Fonseca <[email protected]>2016-09-23 12:55:18 +0100
committerJose Fonseca <[email protected]>2016-10-14 16:29:04 +0100
commitc6d17701c823f10ce6d04e4ccb5df09b0186bfbd (patch)
treecd3c59999d94a42e2885a4122ccb7bf749fb5e9c
parentebffa7b6af879d9475b2e9de9b7fa03e65fda6a8 (diff)
pipe_loader_sw: Don't invoke Unix close() on Windows.
Trivial.
-rw-r--r--src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c b/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c
index e7fa974e419..0fbc78e3818 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;