Apply a similar fix as the previous commit for DragonFly BSD
Authored by: WHR 2024-12-31
Parent: [c0a729]
Child: [614e2b]