M1: vendored sha2/md5 (OpenBSD 8.0) + endian/swap compat; module builds green

This commit is contained in:
lgcosta committed 2026-11-11 12:20:27 -03:00
1 parent da2e9b679a
commit a84b2c91f3
26 files changed
+4810 -91

No files matched your search

+13
View File
@@ -3,4 +3,17 @@
#define _PFK_SYS_ENDIAN_H
#include <linux/byteorder/generic.h>
#include <linux/byteorder/little_endian.h>
#include <linux/stddef.h>
/* BSD byte-order names used by ported code */
#define LITTLE_ENDIAN 1234
#define BIG_ENDIAN 4321
#define PDP_ENDIAN 3412
#if defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define BYTE_ORDER BIG_ENDIAN
#else
#define BYTE_ORDER LITTLE_ENDIAN
#endif
#define swap16(x) swab16(x)
#define swap32(x) swab32(x)
#define swap64(x) swab64(x)
#endif