summaryrefslogtreecommitdiff
path: root/security/opencryptoki/files/patch-usr-lib-common-mech_ec.c
blob: 4cab27ce0a2aae61c9fb133c65a4af887b7bfec2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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>