From c6d17701c823f10ce6d04e4ccb5df09b0186bfbd Mon Sep 17 00:00:00 2001 From: Jose Fonseca Date: Fri, 23 Sep 2016 12:55:18 +0100 Subject: 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 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; -- cgit v1.2.3