diff options
author | David Michael <fedora.dm0@gmail.com> | 2017-06-03 20:53:48 -0700 |
---|---|---|
committer | Tanu Kaskinen <tanuk@iki.fi> | 2017-07-14 22:01:15 +0300 |
commit | e538e19664d83fd80af6180c255ff702ac421837 (patch) | |
tree | 0df09ceb29f41dc4343370d5df3c3c5ba38f9dbd | |
parent | 0a46b437e286ccb552bbb70f57d6fa8715c80ef7 (diff) | |
download | pulseaudio-e538e19664d83fd80af6180c255ff702ac421837.tar.gz |
solaris: Support building on GNU Hurd
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/modules/module-solaris.c | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index da0bfcd5d..1f8a18138 100644 --- a/configure.ac +++ b/configure.ac @@ -436,7 +436,7 @@ AM_CONDITIONAL([HAVE_EVDEV], [test "x$HAVE_EVDEV" = "x1"]) AC_CHECK_HEADERS_ONCE([sys/prctl.h]) # Solaris -AC_CHECK_HEADERS_ONCE([sys/filio.h]) +AC_CHECK_HEADERS_ONCE([sys/conf.h sys/filio.h]) # Windows AC_CHECK_HEADERS_ONCE([windows.h winsock2.h ws2tcpip.h]) diff --git a/src/modules/module-solaris.c b/src/modules/module-solaris.c index fee69e747..f44bc7c79 100644 --- a/src/modules/module-solaris.c +++ b/src/modules/module-solaris.c @@ -31,11 +31,18 @@ #include <sys/ioctl.h> #include <sys/types.h> +#ifdef HAVE_POLL_H +#include <poll.h> +#endif + #include <signal.h> #include <stropts.h> -#include <sys/conf.h> #include <sys/audio.h> +#ifdef HAVE_SYS_CONF_H +#include <sys/conf.h> +#endif + #include <pulse/mainloop-signal.h> #include <pulse/xmalloc.h> #include <pulse/timeval.h> |