Fixed compiling on older Linux systems without libudev
This commit is contained in:
parent
3b188bfa98
commit
22f666c86c
2 changed files with 18 additions and 7 deletions
15
configure.in
15
configure.in
|
@ -1767,9 +1767,20 @@ AC_HELP_STRING([--enable-pthread-sem], [use pthread semaphores [[default=yes]]])
|
|||
pthread_cflags="-D_REENTRANT"
|
||||
pthread_lib="-pthread"
|
||||
;;
|
||||
*-*-solaris*)
|
||||
*-*-solaris2.9)
|
||||
# From Solaris 9+, posix4's preferred name is rt.
|
||||
pthread_cflags="-D_REENTRANT"
|
||||
pthread_lib="-lpthread -lposix4"
|
||||
pthread_lib="-lpthread -lrt"
|
||||
;;
|
||||
*-*-solaris2.10)
|
||||
# Solaris 10+ merged pthread into libc.
|
||||
pthread_cflags="-D_REENTRANT"
|
||||
pthread_lib="-lrt"
|
||||
;;
|
||||
*-*-solaris*)
|
||||
# Solaris 11+ merged rt into libc.
|
||||
pthread_cflags="-D_REENTRANT"
|
||||
pthread_lib=""
|
||||
;;
|
||||
*-*-sysv5*)
|
||||
pthread_cflags="-D_REENTRANT -Kthread"
|
||||
|
|
|
@ -47,6 +47,11 @@
|
|||
#include "../../events/SDL_events_c.h"
|
||||
#endif
|
||||
|
||||
/* This isn't defined in older Linux kernel headers */
|
||||
#ifndef SYN_DROPPED
|
||||
#define SYN_DROPPED 3
|
||||
#endif
|
||||
|
||||
/*
|
||||
* !!! FIXME: move all the udev stuff to src/core/linux, so I can reuse it
|
||||
* !!! FIXME: for audio hardware disconnects.
|
||||
|
@ -59,11 +64,6 @@
|
|||
#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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue