aboutsummaryrefslogtreecommitdiff
path: root/devel/efivar/files/patch-src_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'devel/efivar/files/patch-src_util.h')
-rw-r--r--devel/efivar/files/patch-src_util.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/devel/efivar/files/patch-src_util.h b/devel/efivar/files/patch-src_util.h
new file mode 100644
index 000000000000..7c47def1ebf9
--- /dev/null
+++ b/devel/efivar/files/patch-src_util.h
@@ -0,0 +1,13 @@
+--- src/util.h.orig 2024-01-31 20:08:46 UTC
++++ src/util.h
+@@ -8,7 +8,9 @@
+ #ifndef EFIVAR_UTIL_H
+ #define EFIVAR_UTIL_H 1
+
+-#include <alloca.h>
++#if defined(__linux__)
++# include <alloca.h>
++#endif
+ #include <ctype.h>
+ #include <endian.h>
+ #include <err.h>