Fixed compiling SYN_DROPPED with older kernel headers
authorSam Lantinga <slouken@libsdl.org>
Mon, 11 Feb 2013 18:22:17 -0800
changeset 6852424a6a791947
parent 6851 a58fc7ff4a0f
child 6853 4f26c9dfe50f
Fixed compiling SYN_DROPPED with older kernel headers
src/joystick/linux/SDL_sysjoystick.c
     1.1 --- a/src/joystick/linux/SDL_sysjoystick.c	Mon Feb 11 18:18:34 2013 -0800
     1.2 +++ b/src/joystick/linux/SDL_sysjoystick.c	Mon Feb 11 18:22:17 2013 -0800
     1.3 @@ -59,6 +59,11 @@
     1.4  #include <sys/types.h>
     1.5  #include <unistd.h>
     1.6  
     1.7 +/* This isn't defined in older Linux kernel headers */
     1.8 +#ifndef SYN_DROPPED
     1.9 +#define SYN_DROPPED 3
    1.10 +#endif
    1.11 +
    1.12  /* we never link directly to libudev. */
    1.13  /* !!! FIXME: can we generalize this? ALSA, etc, do the same things. */
    1.14  static const char *udev_library = "libudev.so.0";