pipe-loader: Include unistd.h in pipe_loader_drm.c for close function.
authorVinson Lee <vlee@freedesktop.org>
Sat, 6 Sep 2014 22:53:55 +0000 (15:53 -0700)
committerVinson Lee <vlee@freedesktop.org>
Wed, 10 Sep 2014 18:59:38 +0000 (11:59 -0700)
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 <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c

index f531dbf1dabb07d9f61a56f1b03174b078b31442..ffeb29906b5a9a80708d521cbf2cad590a15f826 100644 (file)
@@ -33,6 +33,7 @@
 #include <fcntl.h>
 #include <stdio.h>
 #include <xf86drm.h>
+#include <unistd.h>
 
 #ifdef HAVE_PIPE_LOADER_XCB