diff options
author | van Hauser <vh@thc.org> | 2023-07-15 09:42:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-15 09:42:04 +0200 |
commit | 7f17a94349830a54d2c899f56b149c0d7f9ffb9c (patch) | |
tree | 7ec0d2b73ca236c73d8d2b337396f320bcf1728d /src/afl-ld-lto.c | |
parent | 497ff5ff7962ee492fef315227366d658c637ab2 (diff) | |
parent | 2b8e528a3b5f44df590b8f727983d142857d0433 (diff) | |
download | afl++-7f17a94349830a54d2c899f56b149c0d7f9ffb9c.tar.gz |
Merge pull request #1798 from AFLplusplus/dev
push to stable
Diffstat (limited to 'src/afl-ld-lto.c')
-rw-r--r-- | src/afl-ld-lto.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/afl-ld-lto.c b/src/afl-ld-lto.c index 420dd817..b1e6c848 100644 --- a/src/afl-ld-lto.c +++ b/src/afl-ld-lto.c @@ -23,7 +23,9 @@ */ #define AFL_MAIN -#define _GNU_SOURCE +#ifndef _GNU_SOURCE + #define _GNU_SOURCE +#endif #include "config.h" #include "types.h" @@ -37,6 +39,7 @@ #include <time.h> #include <ctype.h> #include <fcntl.h> +#include <limits.h> #include <sys/stat.h> #include <sys/types.h> @@ -45,11 +48,6 @@ #include <dirent.h> -#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || \ - defined(__DragonFly__) - #include <limits.h> -#endif - #ifdef __APPLE__ #include <sys/syslimits.h> #endif |