MingW doesn't have strnlen() which is needed in sniffer.c + snifftest.c. To solve it, I added this to my config.h:
extern __inline__ size_t strnlen (const char *str, size_t maxsize)
{
size_t n;
for (n = 0; n < maxsize && *str; n++, str++)
;
return (n);
}
Maybe the missing functions (strnlen, strsep) could be added to a more suitable place?
MingW doesn't have
strnlen()which is needed in sniffer.c + snifftest.c. To solve it, I added this to myconfig.h:Maybe the missing functions (strnlen, strsep) could be added to a more suitable place?