diff options
-rw-r--r-- | src/gallium/auxiliary/target-helpers/inline_drm_helper.h | 2 | ||||
-rw-r--r-- | src/gallium/targets/dri/Makefile.am | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/target-helpers/inline_drm_helper.h b/src/gallium/auxiliary/target-helpers/inline_drm_helper.h index 751ceb1e70e..5d02da7290c 100644 --- a/src/gallium/auxiliary/target-helpers/inline_drm_helper.h +++ b/src/gallium/auxiliary/target-helpers/inline_drm_helper.h @@ -60,6 +60,7 @@ static char* driver_name = NULL; #if defined(GALLIUM_SOFTPIPE) #if defined(DRI_TARGET) +#if defined(HAVE_LIBDRM) const __DRIextension **__driDriverGetExtensions_kms_swrast(void); @@ -84,6 +85,7 @@ kms_swrast_create_screen(int fd) } #endif #endif +#endif #if defined(GALLIUM_I915) #if defined(DRI_TARGET) diff --git a/src/gallium/targets/dri/Makefile.am b/src/gallium/targets/dri/Makefile.am index c7fe4106ab0..6ab15d8233c 100644 --- a/src/gallium/targets/dri/Makefile.am +++ b/src/gallium/targets/dri/Makefile.am @@ -8,6 +8,7 @@ AM_CFLAGS = \ $(GALLIUM_TARGET_CFLAGS) AM_CPPFLAGS = \ + $(DEFINES) \ -DDRI_TARGET \ -DGALLIUM_GALAHAD \ -DGALLIUM_NOOP \ |