Blame SOURCES/0010-Fix-a-makeguids-building-problem-with-generics.h.patch

80b73c
From bf5225b0445cc1b7b69c2a80162d3c1b514a27cf Mon Sep 17 00:00:00 2001
80b73c
From: Peter Jones <pjones@redhat.com>
80b73c
Date: Wed, 20 Jun 2018 14:12:42 -0400
80b73c
Subject: [PATCH 10/17] Fix a makeguids building problem with generics.h.
80b73c
80b73c
Guard generics.h with EFIVAR_BUILD_ENVIRONMENT to keep it from
80b73c
interfering with the makeguids build if libefivar.so isn't around
80b73c
already.
80b73c
80b73c
Signed-off-by: Peter Jones <pjones@redhat.com>
80b73c
---
80b73c
 src/generics.h | 2 ++
80b73c
 1 file changed, 2 insertions(+)
80b73c
80b73c
diff --git a/src/generics.h b/src/generics.h
80b73c
index e6af2fad79e..66be4bd76ab 100644
80b73c
--- a/src/generics.h
80b73c
+++ b/src/generics.h
80b73c
@@ -17,6 +17,7 @@
80b73c
  *
80b73c
  */
80b73c
 
80b73c
+#ifndef EFIVAR_BUILD_ENVIRONMENT
80b73c
 #ifndef LIBEFIVAR_GENERIC_NEXT_VARIABLE_NAME_H
80b73c
 #define LIBEFIVAR_GENERIC_NEXT_VARIABLE_NAME_H 1
80b73c
 
80b73c
@@ -182,3 +183,4 @@ generic_append_variable(efi_guid_t guid, const char *name,
80b73c
 }
80b73c
 
80b73c
 #endif /* LIBEFIVAR_GENERIC_NEXT_VARIABLE_NAME_H */
80b73c
+#endif /* EFIVAR_BUILD_ENVIRONMENT */
80b73c
-- 
80b73c
2.17.1
80b73c