OpenSolaris: Add support for opensolaris
This commit is contained in:
4
README
4
README
@@ -141,5 +141,7 @@ Libiscsi has been tested on:
|
||||
* Linux (32 and 64 bit)
|
||||
* Cygwin
|
||||
* FreeBSD
|
||||
* Windows (Win7-VisualStudio)
|
||||
* Windows (Win7-VisualStudio10)
|
||||
* OpenSolaris
|
||||
|
||||
|
||||
|
||||
@@ -79,6 +79,15 @@ if test x"$libiscsi_cv_HAVE_TCP_KEEPALIVE" = x"yes"; then
|
||||
AC_DEFINE(HAVE_TCP_KEEPALIVE,1,[Whether we have support for tcp keepalive socket options])
|
||||
fi
|
||||
|
||||
AC_CACHE_CHECK([for sys filio.h],libiscsi_cv_NEED_SYS_FILIO_H,[
|
||||
AC_TRY_COMPILE([#include <stdint.h>
|
||||
#include <sys/filio.h>],
|
||||
[int foo = FIONREAD],
|
||||
libiscsi_cv_NEED_SYS_FILIO_H=yes,libiscsi_cv_NEED_SYS_FILIO_H=no)])
|
||||
if test x"$libiscsi_cv_NEED_SYS_FILIO_H" = x"yes"; then
|
||||
AC_DEFINE(NEED_SYS_FILIO_H,1,[Whether we need sys/filio.h])
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(whether libpopt is available)
|
||||
ac_save_CFLAGS="$CFLAGS"
|
||||
ac_save_LIBS="$LIBS"
|
||||
|
||||
@@ -33,6 +33,10 @@
|
||||
#include <sys/ioctl.h>
|
||||
#endif
|
||||
|
||||
#ifdef NEED_SYS_FILIO_H
|
||||
#include <sys/filio.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
Reference in New Issue
Block a user