SDL_syshaptic.c and SDL_sysjoystick.c need string.h for strerror

main
Anonymous Maarten 2023-03-30 00:37:36 +02:00
parent cf8899ec94
commit eed266d266
2 changed files with 3 additions and 1 deletions

View File

@ -32,7 +32,8 @@
#include <linux/input.h> /* Force feedback linux stuff. */
#include <fcntl.h> /* O_RDWR */
#include <limits.h> /* INT_MAX */
#include <errno.h> /* errno, strerror */
#include <errno.h> /* errno */
#include <string.h> /* strerror */
#include <sys/stat.h> /* stat */
#define MAX_HAPTICS 32 /* It's doubtful someone has more then 32 evdev */

View File

@ -34,6 +34,7 @@
#include <limits.h> /* For the definition of PATH_MAX */
#ifdef HAVE_INOTIFY
#include <sys/inotify.h>
#include <string.h> /* strerror */
#endif
#include <sys/ioctl.h>
#include <unistd.h>