From e43178a7ea85eddfccd574d8f3390d2c2a2621d2 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 13 Aug 2006 16:00:26 +0200 Subject: [GCC4] fix build error in drivers/sound/wavfront.c This patch fixes this error with gcc 4 : wavfront.c:2490: error: static declaration of 'errno' follows non-static declaration /usr/src/git/linux-2.4/include/linux/unistd.h:4: error: previous declaration of 'errno' was here The solution is to workaround errno the same way as in sound_firmware : --- drivers/sound/wavfront.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/sound/wavfront.c b/drivers/sound/wavfront.c index 632e731..92fcb20 100644 --- a/drivers/sound/wavfront.c +++ b/drivers/sound/wavfront.c @@ -2484,11 +2484,11 @@ #define __KERNEL_SYSCALLS__ #include #include #include -#include +static int my_errno; +#define errno my_errno +#include #include -static int errno; - static int wavefront_download_firmware (char *path) -- 1.4.2