Commit c4f43d26 authored by Rusty Russell's avatar Rusty Russell

iscsi: use <sys/filio.h> on Solaris.

Needed for FIONREAD.
parent d77d7e32
......@@ -15,6 +15,7 @@
along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
......@@ -31,6 +32,9 @@
#include "iscsi.h"
#include "iscsi-private.h"
#include "dlinklist.h"
#if HAVE_SYS_FILIO_H
#include <sys/filio.h>
#endif
static void set_nonblocking(int fd)
{
......
......@@ -46,6 +46,7 @@
#define HAVE_SECTION_START_STOP 1
#define HAVE_STACK_GROWS_UPWARDS 0
#define HAVE_STATEMENT_EXPR 1
#define HAVE_SYS_FILIO_H 0
#define HAVE_TYPEOF 1
#define HAVE_UTIME 1
#define HAVE_WARN_UNUSED_RESULT 1
......
......@@ -200,6 +200,8 @@ static struct test tests[] = {
"}\n" },
{ "HAVE_STATEMENT_EXPR", INSIDE_MAIN, NULL,
"return ({ int x = argc; x == argc ? 0 : 1; });" },
{ "HAVE_SYS_FILIO_H", OUTSIDE_MAIN, NULL, /* Solaris needs this for FIONREAD */
"#include <sys/filio.h>\n" },
{ "HAVE_TYPEOF", INSIDE_MAIN, NULL,
"__typeof__(argc) i; i = argc; return i == argc ? 0 : 1;" },
{ "HAVE_UTIME", DEFINES_FUNC, NULL,
......
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