mirror of
https://github.com/yawut/SDL.git
synced 2026-09-14 12:06:26 -05:00
Fixed compiling on older Linux systems without libudev
This commit is contained in:
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";
|
||||
|
||||
Reference in New Issue
Block a user