From 4102a00962f568b1d34cf72ad524e1cc705b0b1c Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Wed, 23 Feb 2011 14:44:23 +0100 Subject: [PATCH] xfree86: Fix undefined reference to `XNFsprintf' on sparc. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Build failure on sparc: | copying selected object files to avoid basename conflicts... | CCLD Xorg | ./.libs/libxorg.a(xf86sbusBus.o): In function `xf86SbusConfigureNewDev': | […]/hw/xfree86/common/xf86sbusBus.c:712: undefined reference to `XNFsprintf' | collect2: ld returned 1 exit status Fix typo introduced in: 3a9bb93dd178084f4ff1abcea331ca5a62f88ce6 Reviewed-by: Alan Coopersmith Apologized-for-by: Alan Coopersmith Signed-off-by: Cyril Brulebois --- hw/xfree86/common/xf86sbusBus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/common/xf86sbusBus.c b/hw/xfree86/common/xf86sbusBus.c index 8cfac84e0..181c6ab00 100644 --- a/hw/xfree86/common/xf86sbusBus.c +++ b/hw/xfree86/common/xf86sbusBus.c @@ -709,6 +709,6 @@ xf86SbusConfigureNewDev(void *busData, sbusDevicePtr sBus, GDevRec *GDev) XNFasprintf(&GDev->busID, "SBUS:%s", promPath); free(promPath); } else { - XNFsprintf(&GDev->busID, "SBUS:fb%d", sBus->fbNum); + XNFasprintf(&GDev->busID, "SBUS:fb%d", sBus->fbNum); } }