Skip to content

Commit

Permalink
openbsd doesn't have EBADMSG
Browse files Browse the repository at this point in the history
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
  • Loading branch information
asalkeld committed Aug 29, 2012
1 parent 924ad01 commit d92bfa2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ipc_us.c
Expand Up @@ -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 */
Expand Down
4 changes: 4 additions & 0 deletions lib/ringbuffer.c
Expand Up @@ -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
}
}

Expand Down

0 comments on commit d92bfa2

Please sign in to comment.