Mesa (master): pipe-loader: Include unistd.h in pipe_loader_drm.c for close function.

Vinson Lee vlee at kemper.freedesktop.org
Wed Sep 10 19:01:49 UTC 2014


Module: Mesa
Branch: master
Commit: cc20c45a365cf18e58aa26fed615a496cbf73c70
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cc20c45a365cf18e58aa26fed615a496cbf73c70

Author: Vinson Lee <vlee at freedesktop.org>
Date:   Sat Sep  6 15:53:55 2014 -0700

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 <vlee at freedesktop.org>
Reviewed-by: Brian Paul <brianp at vmware.com>

---

 src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
index f531dbf..ffeb299 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 <fcntl.h>
 #include <stdio.h>
 #include <xf86drm.h>
+#include <unistd.h>
 
 #ifdef HAVE_PIPE_LOADER_XCB
 




More information about the mesa-commit mailing list