efitools/SOURCES/efitools-c99-2.patch

22 lines
553 B
Diff
Raw Permalink Normal View History

2023-09-13 14:45:42 +00:00
Include <strings.h> for the strcasecmp function
Otherwise, an implicit function declaration is the result, and the
code may fail to compile with future compilers.
Submitted upstream:
<https://lore.kernel.org/linux-efi/87pmcllll9.fsf@oldenburg.str.redhat.com/>
diff --git a/efi-updatevar.c b/efi-updatevar.c
index 4247105..033d938 100644
--- a/efi-updatevar.c
+++ b/efi-updatevar.c
@@ -11,6 +11,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <strings.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>