summaryrefslogtreecommitdiffstats
path: root/src/glx/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx/Makefile')
-rw-r--r--src/glx/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/glx/Makefile b/src/glx/Makefile
index ba5708ffed5..2c94ef1cd4f 100644
--- a/src/glx/Makefile
+++ b/src/glx/Makefile
@@ -1,7 +1,11 @@
TOP = ../..
include $(TOP)/configs/current
-EXTRA_DEFINES = -DXF86VIDMODE -D_REENTRANT \
+ifeq ($(HAVE_XF86VIDMODE),yes)
+EXTRA_DEFINES_XF86VIDMODE = -DXF86VIDMODE
+endif
+
+EXTRA_DEFINES = $(EXTRA_DEFINES_XF86VIDMODE) -D_REENTRANT \
-DDEFAULT_DRIVER_DIR=\"$(DRI_DRIVER_SEARCH_DIR)\"
SOURCES = \