From: Jose Fonseca Date: Fri, 23 Sep 2016 11:55:18 +0000 (+0100) Subject: pipe_loader_sw: Don't invoke Unix close() on Windows. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c6d17701c823f10ce6d04e4ccb5df09b0186bfbd;p=mesa.git pipe_loader_sw: Don't invoke Unix close() on Windows. Trivial. --- 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;