Fixed compiling SYN_DROPPED with older kernel headers
This commit is contained in:
parent
cf60f13a01
commit
11176cfece
1 changed files with 5 additions and 0 deletions
|
@ -59,6 +59,11 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.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. */
|
/* we never link directly to libudev. */
|
||||||
/* !!! FIXME: can we generalize this? ALSA, etc, do the same things. */
|
/* !!! FIXME: can we generalize this? ALSA, etc, do the same things. */
|
||||||
static const char *udev_library = "libudev.so.0";
|
static const char *udev_library = "libudev.so.0";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue