diff options
author | Vinson Lee <vlee@freedesktop.org> | 2014-09-06 15:53:55 -0700 |
---|---|---|
committer | Vinson Lee <vlee@freedesktop.org> | 2014-09-10 11:59:38 -0700 |
commit | cc20c45a365cf18e58aa26fed615a496cbf73c70 (patch) | |
tree | 58c54e9d7b127a1d34c1a5f536b4930f720b6707 /src | |
parent | 0bac2551e40410e2251daf4fd9faf69310ab34ce (diff) |
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@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 <fcntl.h> #include <stdio.h> #include <xf86drm.h> +#include <unistd.h> #ifdef HAVE_PIPE_LOADER_XCB |