]> git.cworth.org Git - fips/blobdiff - fips.h
Add explicit link to libpthread, to work around debugging issues
[fips] / fips.h
diff --git a/fips.h b/fips.h
index 4c6c5bd13e6607d4783dd5074ff010ff1c7d04c6..20653ff68b013e8363223f92135724f03491d379 100644 (file)
--- a/fips.h
+++ b/fips.h
@@ -26,6 +26,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <stdbool.h>
 
 #include <string.h>
 
@@ -38,4 +39,6 @@
 #define STRNCMP_LITERAL(var, literal) \
     strncmp ((var), (literal), sizeof (literal) - 1)
 
+#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))
+
 #endif