include limits.h to fix build on BSD systems
MODIFY
src/afl-ld-lto.c
src/afl-ld-lto.c
#include <dirent.h>
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || \
+ defined(__DragonFly__)
+ #include <limits.h>
+#endif
+
#ifdef __APPLE__
#include <sys/syslimits.h>
#endif

include limits.h to fix build on BSD systems