[PATCH xf86-video-intel] Include config.h in intel_options.c
Nick Bowler
nbowler at draconx.ca
Mon May 28 15:28:28 PDT 2012
Commit 8a9a585341e2 ("Only create a single instance of the intel_options
array") moved the definition of intel_options into a separate .c file.
Several of the defined options are #ifdef'd based on the configuration,
but since config.h is never included, the macros being tested are never
defined. Therefore, none of the configuration-specific options will
ever be available at runtime, even if they should be.
Add an inclusion of config.h so that such configuration-specific options
work again.
Signed-off-by: Nick Bowler <nbowler at draconx.ca>
---
src/intel_options.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/intel_options.c b/src/intel_options.c
index 56929be..5679e0e 100644
--- a/src/intel_options.c
+++ b/src/intel_options.c
@@ -1,3 +1,7 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "intel_options.h"
const OptionInfoRec intel_options[] = {
--
1.7.8.6
More information about the xorg-devel
mailing list