commit | a754694ac4fa7b4016fb9de3253b0f3fe691fdf1 | [log] [tgz] |
---|---|---|
author | fuzzah <60884276+fuzzah@users.noreply.github.com> | Wed Jan 27 05:48:59 2021 +0300 |
committer | GitHub <noreply@github.com> | Wed Jan 27 05:48:59 2021 +0300 |
tree | c2f45c21f0b4d49035a2724614c125f8b2a1a21c | |
parent | 36b5336152cd886d911f4299c3154b7817c94838 [diff] |
include limits.h to fix build on BSD systems
diff --git a/src/afl-ld-lto.c b/src/afl-ld-lto.c index 49c04e4..1fb0160 100644 --- a/src/afl-ld-lto.c +++ b/src/afl-ld-lto.c
@@ -45,6 +45,11 @@ #include <dirent.h> +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || \ + defined(__DragonFly__) + #include <limits.h> +#endif + #ifdef __APPLE__ #include <sys/syslimits.h> #endif