Browse Source

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

Anonymous Maarten 2 years ago
parent
commit
eed266d266
2 changed files with 3 additions and 1 deletions
  1. 2 1
      src/haptic/linux/SDL_syshaptic.c
  2. 1 0
      src/joystick/linux/SDL_sysjoystick.c

+ 2 - 1
src/haptic/linux/SDL_syshaptic.c

@@ -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 */

+ 1 - 0
src/joystick/linux/SDL_sysjoystick.c

@@ -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>