From d754bc3435889b5d19085588c9c888dc08f9522e Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Mon, 7 Nov 2011 23:29:29 +0100 Subject: 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 --- src/sna/sna_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sna') 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 -- cgit v1.2.3