OSDN Git Service

[GCC4] fix build error in include/linux/generic_serial.h
authorWilly Tarreau <w@1wt.eu>
Sun, 13 Aug 2006 08:54:26 +0000 (10:54 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 13 Aug 2006 15:19:14 +0000 (17:19 +0200)
This patch fixes this error with gcc 4 :

generic_serial.c:36: error: static declaration of 'gs_debug' follows non-static declaration
/usr/src/git/linux-2.4/include/linux/generic_serial.h:101: error: previous declaration of 'gs_debug' was here

include/linux/generic_serial.h

index 5c30fc9..58773a8 100644 (file)
@@ -98,6 +98,4 @@ int  gs_setserial(struct gs_port *port, struct serial_struct *sp);
 int  gs_getserial(struct gs_port *port, struct serial_struct *sp);
 void gs_got_break(struct gs_port *port);
 
-extern int gs_debug;
-
 #endif