author | Sam Lantinga <slouken@libsdl.org> |
Mon, 11 Feb 2013 18:22:17 -0800 | |
changeset 6852 | 424a6a791947 |
parent 6851 | a58fc7ff4a0f |
child 6853 | 4f26c9dfe50f |
--- a/src/joystick/linux/SDL_sysjoystick.c Mon Feb 11 18:18:34 2013 -0800 +++ b/src/joystick/linux/SDL_sysjoystick.c Mon Feb 11 18:22:17 2013 -0800 @@ -59,6 +59,11 @@ #include <sys/types.h> #include <unistd.h> +/* This isn't defined in older Linux kernel headers */ +#ifndef SYN_DROPPED +#define SYN_DROPPED 3 +#endif + /* we never link directly to libudev. */ /* !!! FIXME: can we generalize this? ALSA, etc, do the same things. */ static const char *udev_library = "libudev.so.0";