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

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