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

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