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

ubpf.h: Add <stdbool.h> to external header file #39

Merged
merged 1 commit into from
Jan 19, 2021

Conversation

sbates130272
Copy link

Commit 089f627 added the bool type to an external function but did not
add the approriate header to define that type. This still allowed the
library to be built because <stdbool.h> was included in the internal
library source files. However it causes issues when linking to this
library from other programs.

Fixes #38

Commit 089f627 added the bool type to an external function but did not
add the approriate header to define that type. This still allowed the
library to be built because <stdbool.h> was included in the internal
library source files. However it causes issues when linking to this
library from other programs.

Fixes iovisor#38
@coveralls
Copy link

Coverage Status

Coverage remained the same at 96.049% when pulling e3c5c4a on sbates130272:stdbool-fix into 089f627 on iovisor:master.

iomartin added a commit to Eideticom/eid-hermes-qemu that referenced this pull request Oct 19, 2020
uBPF[1] is a userspace eBPF virtual machine, which includes an
assembler, disassembler, interpreter and JIT compiler for x86-64.

Because it is not part of the kernel, it can be used by userspace tools
that need to operate on programs in the eBPF ISA.

We need this to enable the hermes device model.

There is currently an open issue on uBPF[2] that requires the inclusion
of stdbool.h as well as ubpf.h. A PR has been opened[3], but has not yet
been merged into upstream, so we add that header to our configure script.

[1]: https://github.com/iovisor/ubpf
[2]: iovisor/ubpf#38
[3]: iovisor/ubpf#39

Signed-off-by: Martin Oliveira <martin.oliveira@eideticom.com>
@pchaigno pchaigno merged commit 5b57636 into iovisor:master Jan 19, 2021
@pchaigno
Copy link
Collaborator

Thanks!

niclashedam pushed a commit to niclashedam/eid-hermes-qemu that referenced this pull request Feb 17, 2021
uBPF[1] is a userspace eBPF virtual machine, which includes an
assembler, disassembler, interpreter and JIT compiler for x86-64.

Because it is not part of the kernel, it can be used by userspace tools
that need to operate on programs in the eBPF ISA.

We need this to enable the hermes device model.

There is currently an open issue on uBPF[2] that requires the inclusion
of stdbool.h as well as ubpf.h. A PR has been opened[3], but has not yet
been merged into upstream, so we add that header to our configure script.

[1]: https://github.com/iovisor/ubpf
[2]: iovisor/ubpf#38
[3]: iovisor/ubpf#39

Signed-off-by: Martin Oliveira <martin.oliveira@eideticom.com>
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.

Commit 089f627 leads to library linking errors due to header file missing <stdbool.h>
3 participants