summaryrefslogtreecommitdiff
path: root/shim.h
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2021-03-09 11:56:31 -0500
committerPeter Jones <pjones@redhat.com>2021-03-10 15:54:20 -0500
commitbbdfa72a0a5f8d5a8dd4a47e67195504a22ece5b (patch)
treedf55ee07b51932f866a25967b18536dc29321073 /shim.h
parent9beca885c29c77bb901547321a5ce6fd3c9c8ee3 (diff)
downloadefi-boot-shim-bbdfa72a0a5f8d5a8dd4a47e67195504a22ece5b.tar.gz
efi-boot-shim-bbdfa72a0a5f8d5a8dd4a47e67195504a22ece5b.zip
Add some test cases, and make "make test" actually work.
Note the one test case I'm not 100% sure about. Someone let me know. Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'shim.h')
-rw-r--r--shim.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/shim.h b/shim.h
index 0ea182eb..44dddc7a 100644
--- a/shim.h
+++ b/shim.h
@@ -3,6 +3,10 @@
#ifndef SHIM_H_
#define SHIM_H_
+#ifdef SHIM_UNIT_TEST
+#define _GNU_SOURCE
+#endif
+
#if defined __GNUC__ && defined __GNUC_MINOR__
# define GNUC_PREREQ(maj, min) \
((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))