Index: md5/md5.c
--- md5/md5.c.orig	2022-01-19 19:07:47.000000000 +0100
+++ md5/md5.c	2023-11-05 23:20:27.439493000 +0100
@@ -48,7 +48,7 @@
 #include <string.h>
 
 /* endianness check using glibc endian.h */
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__FreeBSD__)
 # include <machine/endian.h>
 #else
 # include <endian.h>
