summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2016-09-23 12:55:18 +0100
committerJose Fonseca <jfonseca@vmware.com>2016-10-14 16:29:04 +0100
commitc6d17701c823f10ce6d04e4ccb5df09b0186bfbd (patch)
treecd3c59999d94a42e2885a4122ccb7bf749fb5e9c /src/gallium/auxiliary
parentebffa7b6af879d9475b2e9de9b7fa03e65fda6a8 (diff)
downloadexternal_mesa3d-c6d17701c823f10ce6d04e4ccb5df09b0186bfbd.zip
external_mesa3d-c6d17701c823f10ce6d04e4ccb5df09b0186bfbd.tar.gz
external_mesa3d-c6d17701c823f10ce6d04e4ccb5df09b0186bfbd.tar.bz2
pipe_loader_sw: Don't invoke Unix close() on Windows.
Trivial.
Diffstat (limited to 'src/gallium/auxiliary')
-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 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;