On 09/06/2014 05:00 PM, Vinson Lee wrote:
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 <v...@freedesktop.org>
---
  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



Reviewed-by: Brian Paul <bri...@vmware.com>

Does this need to be tagged for the 10.3 or 10.2 branches?

-Brian

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to