blob: 35c9508e090c5ac6c85a401caa071a98dc4e73ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
$NetBSD: patch-af,v 1.2 1998/08/07 10:40:37 agc Exp $
--- src/unix/devices.c.orig Wed Jun 17 05:48:00 1998
+++ src/unix/devices.c Sat Jul 4 07:42:07 1998
@@ -60,7 +60,7 @@
#elif I386_JOYSTICK
void i386_poll_joystick (void);
/* specific joystick for PC clones */
-#ifdef netbsd_i386
+#ifdef NETBSD
#include <machine/joystick.h>
extern struct joystick joy_data,joy_orig;
#else
@@ -658,7 +658,7 @@
{
#if ( defined USE_JOYSTICK ) && ( defined I386_JOYSTICK )
int res;
-#ifdef netbsd_i386
+#ifdef NETBSD
res = read(joy_fd,&joy_data,sizeof(struct joystick) );
if (res == sizeof(struct joystick )) {
#else
@@ -666,7 +666,7 @@
if (res == sizeof(struct JS_DATA_TYPE )) {
#endif
/* get value of buttons */
-#ifdef netbsd_i386
+#ifdef NETBSD
joy_b1 = joy_data.b1;
joy_b2 = joy_data.b2;
#else
|