$NetBSD: patch-ab,v 1.6 2002/01/12 22:53:16 kristerw Exp $ --- src/unix/unix.mak.orig Sun Jan 6 03:44:58 2002 +++ src/unix/unix.mak Sun Jan 6 19:01:36 2002 @@ -214,7 +214,16 @@ endif ifdef JOY_USB CONFIG += -DUSB_JOYSTICK +ifeq ($(ARCH), netbsd) +ifeq ($(shell test -f /usr/include/usbhid.h && echo have_usbhid), have_usbhid) +CONFIG += -DHAVE_USBHID_H +MY_LIBS += -lusbhid +else MY_LIBS += -lusb +endif +else +MY_LIBS += -lusb +endif endif ifdef EFENCE