summaryrefslogtreecommitdiff
path: root/security/opencryptoki/files/patch-usr-lib-common-mech_ec.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/opencryptoki/files/patch-usr-lib-common-mech_ec.c')
-rw-r--r--security/opencryptoki/files/patch-usr-lib-common-mech_ec.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/security/opencryptoki/files/patch-usr-lib-common-mech_ec.c b/security/opencryptoki/files/patch-usr-lib-common-mech_ec.c
new file mode 100644
index 000000000000..4cab27ce0a2a
--- /dev/null
+++ b/security/opencryptoki/files/patch-usr-lib-common-mech_ec.c
@@ -0,0 +1,14 @@
+--- usr/lib/common/mech_ec.c.orig 2022-04-25 11:04:51 UTC
++++ usr/lib/common/mech_ec.c
+@@ -14,7 +14,11 @@
+ */
+
+ #define _GNU_SOURCE
++#if !defined(__FreeBSD__)
+ #include <endian.h>
++#else
++#include <sys/endian.h>
++#endif
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <stdint.h>