These are fixes for Guile when built with the --disable-networking
option.
Michael Gran (2):
Fixes export of suspendable-ports socket funcs when networking
disabled
Disable some socket tests when sockets not provided
module/ice-9/suspendable-ports.scm | 46
Make distcheck on main is not working for me. The issue is when it
tries to create a file called .version-t and then move it to .version.
It tries to create this file in $top_srcdir, which ought to be
read-only.
The following patch, in which I build it in $top_builddir, works for me.
Regards,
Mi
struct timeval is a potential return value of struct getsockopt, but,
when HAVE_STRUCT_LINGER is not defined, scm_t_getsockopt_result may
be too small to hold a struct timeval.
To fix this, struct timeval can be added to the scm_t_getsockopt_result
union.
Regards,
Mike Gran
>From 0ebd33ee05ad02a
When guile is built with --disable-networking, (ice-9 suspendable-ports)
will attempt to re-export non-existent accept and socket functions.
* module/ice-9/suspendable-ports.scm (accept, connect): set to #f when
(guile) module does not have accept or connect
(guile-port-bindings): new variable
* test-suite/tests/00-repl-server.test (call-with-repl-server): throw
unsupported when sockets not provided
* test-suite/tests/web-server.test (expect, "server is listening"):
throw unresolved when socket not provided
---
test-suite/tests/00-repl-server.test | 3 ++-
test-suite/tests/web-serve