Commit a4a7df06 authored by Alan Coopersmith's avatar Alan Coopersmith

XlibInt.c: include headers needed for ioctl(...FIONREAD...) on Solaris

Fixes: commit 5538b3e4Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
parent 38ec04de
......@@ -139,7 +139,7 @@ fi
AC_MSG_RESULT($XLIB_LOADABLE_XCURSOR)
# Checks for header files.
AC_CHECK_HEADERS([sys/select.h])
AC_CHECK_HEADERS([sys/filio.h sys/select.h])
# Checks for typedefs, structures, and compiler characteristics.
......
......@@ -47,6 +47,16 @@ from The Open Group.
#include <direct.h>
#endif
/* Needed for FIONREAD on Solaris */
#ifdef HAVE_SYS_FILIO_H
#include <sys/filio.h>
#endif
/* Needed for ioctl() on Solaris */
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef XTHREADS
#include "locking.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment