diff options
author | Cyril Brulebois <kibi@debian.org> | 2011-11-07 23:29:29 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-08-04 16:35:58 +0100 |
commit | d754bc3435889b5d19085588c9c888dc08f9522e (patch) | |
tree | 2eecf4e3bc2a1399839429e1f5a70299d4fe467d /src/sna/sna_driver.c | |
parent | 4bad76b4510d8cf4ccf3f64bcd13ebb80fae4d26 (diff) |
Fix build failure when passing --with-builderstring.
If --with-builderstring="foo" is passed to configure (and sna enabled):
CC sna_driver.lo
src/sna/sna_driver.c: In function 'sna_init_scrn':
src/sna/sna_driver.c:1023:7: error: token ""foo"" is not valid in preprocessor expressions
Fix the missing defined() around the BUILDER_DESCRIPTION variable.
Signed-off-by: Cyril Brulebois <kibi@debian.org>
Diffstat (limited to 'src/sna/sna_driver.c')
-rw-r--r-- | src/sna/sna_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c index 2ccad598..5d2915f1 100644 --- a/src/sna/sna_driver.c +++ b/src/sna/sna_driver.c @@ -1071,7 +1071,7 @@ Bool sna_init_scrn(ScrnInfoPtr scrn, int entity_num) #if defined(USE_GIT_DESCRIBE) xf86DrvMsg(scrn->scrnIndex, X_INFO, "SNA compiled from %s\n", git_version); -#elif BUILDER_DESCRIPTION +#elif defined(BUILDER_DESCRIPTION) xf86DrvMsg(scrn->scrnIndex, X_INFO, "SNA compiled: %s\n", BUILDER_DESCRIPTION); #endif |