From: Vinson Lee Date: Sat, 6 Sep 2014 22:53:55 +0000 (-0700) Subject: pipe-loader: Include unistd.h in pipe_loader_drm.c for close function. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cc20c45a365cf18e58aa26fed615a496cbf73c70;p=mesa.git pipe-loader: Include unistd.h in pipe_loader_drm.c for close function. This patch fixes a build error on DragonFly. CC libpipe_loader_la-pipe_loader_drm.lo pipe_loader_drm.c: In function 'pipe_loader_drm_probe': pipe_loader_drm.c:207:10: error: implicit declaration of function 'close' [-Werror=implicit-function-declaration] Signed-off-by: Vinson Lee Reviewed-by: Brian Paul --- diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c index f531dbf1dab..ffeb29906b5 100644 --- a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c +++ b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c @@ -33,6 +33,7 @@ #include #include #include +#include #ifdef HAVE_PIPE_LOADER_XCB