Fix build on FreeBSD

This commit is contained in:
Kevin Zheng 2019-01-08 20:48:54 -06:00 committed by Deve
parent 737e4b3d99
commit 23706f4795

View File

@ -23,12 +23,17 @@
#include <cstdio>
#include <cstdlib>
#include <string>
#include <linux/input.h>
#include <sys/mman.h>
#include <sys/utsname.h>
#include <unistd.h>
#include <time.h>
#ifdef __FreeBSD__
#include <dev/evdev/input.h>
#else
#include <linux/input.h>
#endif
#if defined _IRR_COMPILE_WITH_JOYSTICK_EVENTS_
#include <fcntl.h>
#include <sys/ioctl.h>