blob: 07a5456d2e2d474ad49aa53bd99de535e32345ec (
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
32
33
34
35
|
$NetBSD: patch-ae,v 1.2 2000/08/22 15:40:12 dmcmahill Exp $
--- lib/usbdrvlinux.c.orig Tue Aug 22 14:58:45 2000
+++ lib/usbdrvlinux.c Tue Aug 22 14:59:00 2000
@@ -54,7 +54,7 @@
#include <dirent.h>
#ifdef WORDS_BIGENDIAN
-# include <byteswap.h>
+# include <machine/bswap.h>
#endif
#if TIME_WITH_SYS_TIME
@@ -200,8 +200,8 @@
pid = desc.idProduct[0] | (desc.idProduct[1] << 8);
#ifdef WORDS_BIGENDIAN
- vid = bswap_16(vid);
- pid = bswap_16(pid);
+ vid = bswap16(vid);
+ pid = bswap16(pid);
#endif
if ((vid != vendorid && vendorid == -1) ||
@@ -270,8 +270,8 @@
pid = desc.idProduct[0] | (desc.idProduct[1] << 8);
#ifdef WORDS_BIGENDIAN
- vid = bswap_16(vid);
- pid = bswap_16(pid);
+ vid = bswap16(vid);
+ pid = bswap16(pid);
#endif
if ((vid == vendorid || vendorid == 0xffff) &&
|