diff options
-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> |