along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#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)
{
#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
"}\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,