35 lines
854 B
Text
35 lines
854 B
Text
$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) &&
|