From a76a789747458e3690e44ee81332099a3f80c156 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Wed, 5 Mar 2014 06:00:03 +0200 Subject: Continue to straighten out enum usage. --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io.c') diff --git a/io.c b/io.c index 3e527da0..b0b60deb 100644 --- a/io.c +++ b/io.c @@ -3968,7 +3968,7 @@ init_output_wrapper(awk_output_buf_t *outbuf) outbuf->mode = NULL; outbuf->fp = NULL; outbuf->opaque = NULL; - outbuf->redirected = false; + outbuf->redirected = awk_false; outbuf->gawk_fwrite = gawk_fwrite; outbuf->gawk_fflush = gawk_fflush; outbuf->gawk_ferror = gawk_ferror; -- cgit v1.2.3 From 4525c29d221587c522c11ac6ec50122832729cd5 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Fri, 11 Apr 2014 07:35:29 +0300 Subject: Define closemaybesocket if it isn't otherwise. --- io.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'io.c') diff --git a/io.c b/io.c index b0b60deb..2a5c2e73 100644 --- a/io.c +++ b/io.c @@ -166,6 +166,12 @@ # define SOCKET int #endif +#else /* HAVE_SOCKETS */ + +#ifndef closemaybesocket +# define closemaybesocket(fd) close(fd) +#endif + #endif /* HAVE_SOCKETS */ #ifndef HAVE_SETSID -- cgit v1.2.3