Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed compiling SYN_DROPPED with older kernel headers
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 12, 2013
1 parent 1fb4e22 commit 6cae89a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/joystick/linux/SDL_sysjoystick.c
Expand Up @@ -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";
Expand Down

0 comments on commit 6cae89a

Please sign in to comment.