[2.6.11.3] gcc4 / psmouse.h - compilation fix.

Paweł Sikora
2005-03-13T13:20:25Z

[-- Attachment #1: Type: text/plain, Size: 260 bytes --]

Hi,

Attched patch fixes gcc error:
`drivers/input/mouse/psmouse.h:40: error: field `ps2dev' has incomplete type`

Please apply.

--
/* Copyright (C) 2003, SCO, Inc. This is valuable Intellectual Property. */

#define say(x) lie(x)

[-- Attachment #2: 2.6.11.3-gcc4-psmouse.patch --]
[-- Type: text/x-diff, Size: 452 bytes --]

drivers/input/mouse/psmouse.h:40: error: field `ps2dev' has incomplete type

--- linux-2.6.11.3/drivers/input/mouse/psmouse.h.orig 2005-03-13 07:44:40.000000000 +0100
+++ linux-2.6.11.3/drivers/input/mouse/psmouse.h 2005-03-13 14:08:06.000000000 +0100
@@ -1,6 +1,8 @@
#ifndef _PSMOUSE_H
#define _PSMOUSE_H

+#include <linux/libps2.h>
+
#define PSMOUSE_CMD_SETSCALE11 0x00e6
#define PSMOUSE_CMD_SETSCALE21 0x00e7
#define PSMOUSE_CMD_SETRES 0x10e8