mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-07 20:00:20 +00:00
Fix setsockopt on FreeBSD
FreeBSD's setsockopt() behaves just like Dawrin, i.e. sets errno to EINVAL instead of ENOTSUP, so extend the Darwin workaround to work for FreeBSD as well. Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com> Acked-by: Frediano Ziglio <freddy77@gmail.com>
This commit is contained in:
parent
8b03c6fb64
commit
3c1d87ccfe
@ -48,7 +48,7 @@
|
||||
static inline bool
|
||||
darwin_einval_on_unix_socket(int fd, int err)
|
||||
{
|
||||
#if defined(__APPLE__)
|
||||
#if defined(__APPLE__) || defined(__FreeBSD__)
|
||||
if (err == EINVAL) {
|
||||
union {
|
||||
struct sockaddr sa;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user