diff options
author | Emil Velikov <[email protected]> | 2017-06-17 11:40:21 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-06-17 16:57:18 +0100 |
commit | 68aa39d5c2fed23736f07136390e61e1740e4d6f (patch) | |
tree | a98d3c1ee43599bf5ce344aee4459071c404a7cf /src/gallium/drivers/r600/evergreen_compute.c | |
parent | 1f958c1337290b4062a77f79fc101bb9f4bdf515 (diff) |
r600: include libelf headers only as needed
Headers are required only when building with OpenCL. As we're building
w/o it libelf may be missing, hence we'll error out as below:
src/gallium/drivers/r600/evergreen_compute.c:27:10:
fatal error: 'gelf.h' file not found
^
1 error generated.
Fixes: d96a210842 ("r600g,compute: provide local copy of functions from
ac_binary.c")
Reviewed-by: Jan Vesely <[email protected]>
Reported-by: Mauro Rossi <[email protected]>
Tested-by: Mauro Rossi <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/evergreen_compute.c')
-rw-r--r-- | src/gallium/drivers/r600/evergreen_compute.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c index 37cfed4497b..6e87539cfe7 100644 --- a/src/gallium/drivers/r600/evergreen_compute.c +++ b/src/gallium/drivers/r600/evergreen_compute.c @@ -24,8 +24,10 @@ * Adam Rak <[email protected]> */ +#ifdef HAVE_OPENCL #include <gelf.h> #include <libelf.h> +#endif #include <stdio.h> #include <errno.h> #include "pipe/p_defines.h" |