./dnet.c:781:10: fatal error: 'bsd/string.h' file not found
#include "bsd/string.h"
^~~~~~~~~~~~~~
1 error generated.
strlcpy and strlcat are declared in string.h. I'm not sure that bsd/string.h exists on BSD systems either, it might just be a Linux thing. You probably want to include string.h and then also include bsd/string.h if it exists.