workaround for Solaris: NAME_MAX is not defined

This commit is contained in:
hexcoder-
2020-12-22 20:33:06 +01:00
parent 8241ded12e
commit 9a5ea5b5c2
2 changed files with 6 additions and 0 deletions

View File

@ -25,6 +25,9 @@
#include "afl-fuzz.h" #include "afl-fuzz.h"
#include <limits.h> #include <limits.h>
#if !defined NAME_MAX
#define NAME_MAX _XOPEN_NAME_MAX
#endif
/* Write bitmap to file. The bitmap is useful mostly for the secret /* Write bitmap to file. The bitmap is useful mostly for the secret
-B option, to focus a separate fuzzing session on a particular -B option, to focus a separate fuzzing session on a particular

View File

@ -28,6 +28,9 @@
#include <sys/time.h> #include <sys/time.h>
#include <signal.h> #include <signal.h>
#include <limits.h> #include <limits.h>
#if !defined NAME_MAX
#define NAME_MAX _XOPEN_NAME_MAX
#endif
#include "cmplog.h" #include "cmplog.h"