aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-04-11 07:35:29 +0300
committerArnold D. Robbins <arnold@skeeve.com>2014-04-11 07:35:29 +0300
commit4525c29d221587c522c11ac6ec50122832729cd5 (patch)
tree4ec52f7183ab839620f0ef2003fb12f5836337c1 /io.c
parentdc5af665700d9b04fdf9c18930526d28eef5d5d9 (diff)
downloadegawk-4525c29d221587c522c11ac6ec50122832729cd5.tar.gz
egawk-4525c29d221587c522c11ac6ec50122832729cd5.tar.bz2
egawk-4525c29d221587c522c11ac6ec50122832729cd5.zip
Define closemaybesocket if it isn't otherwise.
Diffstat (limited to 'io.c')
-rw-r--r--io.c6
1 files changed, 6 insertions, 0 deletions
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