Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ibuf_add, ibuf_add_buf, ibuf_add_zero and ibuf_data for OpenBSD 7.3. #123

Merged
merged 2 commits into from
Sep 4, 2023

Conversation

moritzbuhl
Copy link
Contributor

No description provided.

@@ -18,6 +18,8 @@

/* ibuf API functions added to OpenBSD's imsg-buffer.c in June 2023. */

#ifdef HAVE_IMSG_H
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could also go to compat/CMakeLists.txt:

if(HAVE_IMSG AND (NOT HAVE_IBUF_ADD_BUF OR NOT HAVE_IBUF_ADD_ZERO OR NOT HAVE_IBUF_DATA))

void *ibuf_reserve(struct ibuf *, size_t);

int
ibuf_add(struct ibuf *buf, const void *data, size_t len)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I wrap ibuf_add in it's own HAVE_IBUF_ADD ifdef?

@tobhe tobhe merged commit fb5bf1f into openiked:master Sep 4, 2023
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants