aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfuzzah <60884276+fuzzah@users.noreply.github.com>2021-01-27 05:48:59 +0300
committerGitHub <noreply@github.com>2021-01-27 05:48:59 +0300
commita754694ac4fa7b4016fb9de3253b0f3fe691fdf1 (patch)
treec2f45c21f0b4d49035a2724614c125f8b2a1a21c /src
parent36b5336152cd886d911f4299c3154b7817c94838 (diff)
downloadAFLplusplus-a754694ac4fa7b4016fb9de3253b0f3fe691fdf1.tar.gz
include limits.h to fix build on BSD systems
Diffstat (limited to 'src')
-rw-r--r--src/afl-ld-lto.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/afl-ld-lto.c b/src/afl-ld-lto.c
index 49c04e4a..1fb01600 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