src/joystick/linux/SDL_sysjoystick.c
changeset 6910 a3d4fd1ba315
parent 6885 700f1b25f77f
child 6911 c683ff6484b0
     1.1 --- a/src/joystick/linux/SDL_sysjoystick.c	Sat Feb 23 02:25:34 2013 -0800
     1.2 +++ b/src/joystick/linux/SDL_sysjoystick.c	Sun Feb 24 12:55:51 2013 -0800
     1.3 @@ -47,6 +47,11 @@
     1.4  #include "../../events/SDL_events_c.h"
     1.5  #endif
     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  /*
    1.13   * !!! FIXME: move all the udev stuff to src/core/linux, so I can reuse it
    1.14   * !!! FIXME:  for audio hardware disconnects.
    1.15 @@ -59,11 +64,6 @@
    1.16  #include <sys/types.h>
    1.17  #include <unistd.h>
    1.18  
    1.19 -/* This isn't defined in older Linux kernel headers */
    1.20 -#ifndef SYN_DROPPED
    1.21 -#define SYN_DROPPED 3
    1.22 -#endif
    1.23 -
    1.24  /* we never link directly to libudev. */
    1.25  /* !!! FIXME: can we generalize this? ALSA, etc, do the same things. */
    1.26  static const char *udev_library = "libudev.so.0";