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

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