[PATCH] if_stmac: fix compilation error (related to crc32_raw move in FreeBSD)

Karel Gardas karel at functional.vision
Sat Apr 23 07:36:11 UTC 2022


FreeBSD in 2019 moved crc32 function into separate gsb_crc32.h header
file and probably after libbsd sync with this change if_stmac got broken.
---
 rtemsbsd/sys/dev/stmac/if_stmac.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rtemsbsd/sys/dev/stmac/if_stmac.c b/rtemsbsd/sys/dev/stmac/if_stmac.c
index 614c51b9..7e3e07c7 100644
--- a/rtemsbsd/sys/dev/stmac/if_stmac.c
+++ b/rtemsbsd/sys/dev/stmac/if_stmac.c
@@ -40,6 +40,7 @@
 #include <sys/module.h>
 #include <sys/socket.h>
 #include <sys/sockio.h>
+#include <sys/gsb_crc32.h>
 
 #include <net/if.h>
 #include <net/ethernet.h>
-- 
2.25.1



More information about the devel mailing list