Use <sys/joystick.h> on netbsd, too.
<machine/joystick.h> is a compatibility header that only includes
<sys/joystick.h>, and wasn't added to newer architectures.
This helps the build on netbsd/aarch64.
(cherry picked from commit bcfbede38a
)
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1860 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
61fb655211
commit
228ed9638f
@ -105,18 +105,7 @@ struct tagSFG_PlatformWindowState
|
||||
/* XXX The below hack is done until freeglut's autoconf is updated. */
|
||||
# define HAVE_USB_JS 1
|
||||
|
||||
# if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||
# include <sys/joystick.h>
|
||||
# else
|
||||
/*
|
||||
* XXX NetBSD/amd64 systems may find that they have to steal the
|
||||
* XXX /usr/include/machine/joystick.h from a NetBSD/i386 system.
|
||||
* XXX I cannot comment whether that works for the interface, but
|
||||
* XXX it lets you compile...(^& I do not think that we can do away
|
||||
* XXX with this header.
|
||||
*/
|
||||
# include <machine/joystick.h> /* For analog joysticks */
|
||||
# endif
|
||||
# include <sys/joystick.h>
|
||||
# define JS_DATA_TYPE joystick
|
||||
# define JS_RETURN (sizeof(struct JS_DATA_TYPE))
|
||||
# endif
|
||||
|
@ -138,19 +138,7 @@ struct tagSFG_PlatformWindowState
|
||||
# if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__)
|
||||
/* XXX The below hack is done until freeglut's autoconf is updated. */
|
||||
# define HAVE_USB_JS 1
|
||||
|
||||
# if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||
# include <sys/joystick.h>
|
||||
# else
|
||||
/*
|
||||
* XXX NetBSD/amd64 systems may find that they have to steal the
|
||||
* XXX /usr/include/machine/joystick.h from a NetBSD/i386 system.
|
||||
* XXX I cannot comment whether that works for the interface, but
|
||||
* XXX it lets you compile...(^& I do not think that we can do away
|
||||
* XXX with this header.
|
||||
*/
|
||||
# include <machine/joystick.h> /* For analog joysticks */
|
||||
# endif
|
||||
# include <sys/joystick.h>
|
||||
# define JS_DATA_TYPE joystick
|
||||
# define JS_RETURN (sizeof(struct JS_DATA_TYPE))
|
||||
# endif
|
||||
|
Reference in New Issue
Block a user