Subject: port-mac68k/6363: patch for ALTXBUTTONS for mac68k
To: None <gnats-bugs@gnats.netbsd.org>
From: None <fb@enteract.com>
List: netbsd-bugs
Date: 10/26/1998 10:04:15
>Number:         6363
>Category:       port-mac68k
>Synopsis:       mac68 kernels fail to build with options ALTXBUTTONS
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 26 08:20:01 1998
>Last-Modified:
>Originator:     Frederick Bruckman
>Organization:

>Release:        Oct 25, 1998
>Environment:
System: NetBSD fb.sa.enteract.com 1.3G NetBSD 1.3G (FB) #96: Sun Aug 30 11:30:21 CDT 1998 fredb@fb.sa.enteract.com:/usr/src/sys/arch/mac68k/compile/FB mac68k


>Description:
	There's a typo in arch/mac68k/dev/aed.c that breaks kernel compiles iff only 
	`options ALTXBUTTONS' is set in the kernel config file. Example:
	../../../../arch/mac68k/dev/aed.c: In function `aed_emulate_mouse':
	../../../../arch/mac68k/dev/aed.c:204: `aed_c' undeclared (first use this function)
	../../../../arch/mac68k/dev/aed.c:204: (Each undeclared identifier is reported only once
	../../../../arch/mac68k/dev/aed.c:204: for each function it appears in.)
	*** Error code 1

	Stop.
>How-To-Repeat:
	as above
>Fix:
--- src/sys/arch/mac68k/dev/aed.c.orig  Fri Oct 23 06:13:43 1998
+++ src/sys/arch/mac68k/dev/aed.c       Sun Oct 25 10:38:39 1998
@@ -201,7 +201,7 @@
                        aed_handoff(&new_event);
                        break;
                case ADBK_KEYUP(ADBK_1):
-                       aed_c->sc_buttons &= ~1;        /* left up */
+                       aed_sc->sc_buttons &= ~1;       /* left up */
                        new_event.def_addr = ADBADDR_MS;
                        new_event.u.m.buttons = aed_sc->sc_buttons;
                        new_event.u.m.dx = new_event.u.m.dy = 0;

>Audit-Trail:
>Unformatted: