diff options
author | Dima Krasner <dima@dimakrasner.com> | 2016-01-31 21:56:03 +0200 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2016-02-01 10:47:13 +1000 |
commit | 54697b4bebf26e80d60e7a10d42fc5f4f00b9fdd (patch) | |
tree | 1f24ace3f14750a1a3814b5aca1e959f1dabc552 | |
parent | b8829048fa40302ab0700ac547214e30392d56ef (diff) | |
download | jimtcl-54697b4bebf26e80d60e7a10d42fc5f4f00b9fdd.zip jimtcl-54697b4bebf26e80d60e7a10d42fc5f4f00b9fdd.tar.gz jimtcl-54697b4bebf26e80d60e7a10d42fc5f4f00b9fdd.tar.bz2 |
aio: replace HAVE_SOCKETPAIR with HAVE_DUP
in aio_cmd_ssl()
-rw-r--r-- | jim-aio.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1073,8 +1073,7 @@ static int aio_cmd_ssl(Jim_Interp *interp, int argc, Jim_Obj *const *argv) } fd = fileno(af->fp); - /* XXX: Why HAVE_SOCKETPAIR? */ -#if defined(HAVE_SOCKETPAIR) +#if defined(HAVE_DUP) fd = dup(fd); if (fd < 0) { return JIM_ERR; @@ -1087,7 +1086,7 @@ static int aio_cmd_ssl(Jim_Interp *interp, int argc, Jim_Obj *const *argv) ssl = SSL_new(ssl_ctx); if (ssl == NULL) { -#if defined(HAVE_SOCKETPAIR) +#if defined(HAVE_DUP) close(fd); #endif Jim_SetResultString(interp, ERR_error_string(ERR_get_error(), NULL), -1); @@ -1129,7 +1128,7 @@ static int aio_cmd_ssl(Jim_Interp *interp, int argc, Jim_Obj *const *argv) return JIM_OK; out: -#if defined(HAVE_SOCKETPAIR) +#if defined(HAVE_DUP) close(fd); #endif SSL_free(ssl); |