Skip to content

Commit

Permalink
ubpf.h: Add <stdbool.h> to external header file
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sbates130272 committed Oct 8, 2020
1 parent 089f627 commit e3c5c4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vm/inc/ubpf.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>

struct ubpf_vm;
typedef uint64_t (*ubpf_jit_fn)(void *mem, size_t mem_len);
Expand Down

0 comments on commit e3c5c4a

Please sign in to comment.