mirror of
https://salsa.debian.org/ha-team/libqb
synced 2026-08-09 22:49:43 +00:00
openbsd doesn't have EBADMSG
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
parent
924ad01058
commit
d92bfa2b0e
@ -851,7 +851,7 @@ qb_ipcs_uc_recv_and_auth(int32_t sock, void *msg, size_t len,
|
||||
ugp->uid = cred.uid;
|
||||
ugp->gid = cred.gid;
|
||||
} else {
|
||||
res = -EBADMSG;
|
||||
res = -EINVAL;
|
||||
}
|
||||
}
|
||||
#else /* no credentials */
|
||||
|
||||
@ -624,7 +624,11 @@ qb_rb_chunk_read(struct qb_ringbuffer_s * rb, void *data_out, size_t len,
|
||||
return -ETIMEDOUT;
|
||||
} else {
|
||||
(void)rb->sem_post_fn(rb);
|
||||
#ifdef EBADMSG
|
||||
return -EBADMSG;
|
||||
#else
|
||||
return -EINVAL;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user