diff mbox series

[kvm-unit-tests,1/7] bitops: Include stdbool.h and stddef.h as necessary

Message ID 20220120002923.668708-2-seanjc@google.com (mailing list archive)
State New, archived
Headers show
Series x86/debug: More single-step #DB tests | expand

Commit Message

Sean Christopherson Jan. 20, 2022, 12:29 a.m. UTC
Include stdbool.h and stddef.h in bitops.h to pick up the definitions for
"bool" and "size_t" respectively.

Signed-off-by: Sean Christopherson <seanjc@google.com>
---
 lib/bitops.h | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/lib/bitops.h b/lib/bitops.h
index 308aa865..81a06a47 100644
--- a/lib/bitops.h
+++ b/lib/bitops.h
@@ -1,6 +1,9 @@ 
 #ifndef _BITOPS_H_
 #define _BITOPS_H_
 
+#include <stdbool.h>
+#include <stddef.h>
+
 /*
  * Adapted from
  *   include/linux/bitops.h