[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gawk] Gawk 4.1.1 build without socket support fails on linux.
From: |
Dave Sines |
Subject: |
[bug-gawk] Gawk 4.1.1 build without socket support fails on linux. |
Date: |
Wed, 09 Apr 2014 15:25:01 +0100 |
User-agent: |
tin/2.2.0-20131224 ("Lochindaal") (UNIX) (Linux/3.0.0-1 (i686)) |
Attempting (on a linux system) to build gawk 4.1.1 without /inet/* support
(disabled by way of ac_cv_func_connect=no ./configure) fails due to
unguarded use of closemaybesocket macro in io.c.
Possible patch (between #v+ ... #v-, contains literal tabs):
#v+
--- gawk-4.1.1/io.c.orig 2014-03-05 04:00:36.000000000 +0000
+++ gawk-4.1.1/io.c 2014-04-09 14:40:40.000000000 +0100
@@ -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
#v-
- [bug-gawk] Gawk 4.1.1 build without socket support fails on linux.,
Dave Sines <=