$NetBSD: patch-ah,v 1.3 1999/11/10 08:01:29 soren Exp $

--- src/unix/joystick-drivers/joy_i386.c.orig	Sat Oct  9 23:52:00 1999
+++ src/unix/joystick-drivers/joy_i386.c	Wed Nov 10 07:28:02 1999
@@ -5,7 +5,7 @@
 #include <sys/ioctl.h>
 
 /* specific joystick for PC clones */
-#ifdef netbsd_i386
+#ifdef NETBSD
 
 #include <machine/joystick.h>
 typedef struct joystick joy_struct;
@@ -20,7 +20,7 @@
 #endif
 
 #else
-#error "i386 style joystick only supported under linux & netbsd-i386, "
+#error "i386 style joystick only supported under linux & NetBSD, "
 "patches to support other arch's should be easy and are welcome ;)"
 #endif
 
@@ -92,7 +92,7 @@
                joytype = JOY_I386;
             case JOY_I386:
                joy_data[i].num_axis = 2;
-#ifdef netbsd_i386
+#ifdef NETBSD
                joy_data[i].num_buttons = 2;
 #else
                joy_data[i].num_buttons = JOY_BUTTONS;
@@ -168,7 +168,7 @@
          continue;
       
       /* get value of buttons */
-#ifdef netbsd_i386
+#ifdef NETBSD
       joy_data[i].buttons[0] = my_joy_data.b1;
       joy_data[i].buttons[1] = my_joy_data.b2;
 #else
