mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-22 04:21:16 -08:00
Merge branch 'musl' into 'develop'
contrib: sockets: Add defaults for NETDB_{INTERNAL,SUCESS}.
NETDB_INTERNAL and NETDB_SUCCESS are not defined by POSIX, so some
libc implementations (such as musl) do not have them. When compiling
sockets contrib, check if these are defined and, if not, define them to
be zero.
Tested by compiling on Alpine Linux and there are no unexpected failures
in the test suite.
See merge request !17
This commit is contained in:
commit
c8b3f2d53b
1 changed files with 9 additions and 0 deletions
|
|
@ -1429,6 +1429,15 @@ ecl_make_stream_from_fd(#0,#1,(enum ecl_smmode)#2,
|
|||
"#define NETDB_INTERNAL WSAEAFNOSUPPORT"
|
||||
"#define NETDB_SUCCESS 0"
|
||||
)
|
||||
|
||||
(Clines
|
||||
"#ifndef NETDB_INTERNAL"
|
||||
"#define NETDB_INTERNAL 0"
|
||||
"#endif"
|
||||
"#ifndef NETDB_SUCCESS"
|
||||
"#define NETDB_SUCCESS 0"
|
||||
"#endif")
|
||||
|
||||
(define-socket-condition EADDRINUSE address-in-use-error)
|
||||
(define-socket-condition EAGAIN interrupted-error)
|
||||
(define-socket-condition EBADF bad-file-descriptor-error)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue