Fixed compiling SYN_DROPPED with older kernel headers

This commit is contained in:
Sam Lantinga
2013-02-11 18:22:17 -08:00
parent cb6ecc89fb
commit c0c9a2ea7d

View File

@@ -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";