From 56cdc42d180ce9ed36a1ba0aea471cce834d86e8 Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Thu, 20 Apr 2017 14:16:56 +1000 Subject: aio: Only allow TCP_NODELAY if sockets are supported Sockets need extra work on Windows, so not supported there yet. Signed-off-by: Steve Bennett --- jim-aio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jim-aio.c') diff --git a/jim-aio.c b/jim-aio.c index 3fd027f..293f47b 100644 --- a/jim-aio.c +++ b/jim-aio.c @@ -944,7 +944,7 @@ static int aio_cmd_ndelay(Jim_Interp *interp, int argc, Jim_Obj *const *argv) } #endif -#ifdef TCP_NODELAY +#if defined(TCP_NODELAY) && !defined(JIM_ANSIC) && !defined(JIM_BOOTSTRAP) static int aio_cmd_tcp_nodelay(Jim_Interp *interp, int argc, Jim_Obj *const *argv) { AioFile *af = Jim_CmdPrivData(interp); @@ -1392,7 +1392,7 @@ static const jim_subcmd_type aio_command_table[] = { /* Description: Set O_NDELAY (if arg). Returns current/new setting. */ }, #endif -#ifdef TCP_NODELAY +#if defined(TCP_NODELAY) && !defined(JIM_ANSIC) && !defined(JIM_BOOTSTRAP) { "tcp_nodelay", "boolean", aio_cmd_tcp_nodelay, -- cgit v1.1