workaround for Solaris: NAME_MAX is not defined
MODIFY
src/afl-fuzz-bitmap.c
src/afl-fuzz-bitmap.c
#include "afl-fuzz.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
-B option, to focus a separate fuzzing session on a particular

MODIFY
src/afl-fuzz-run.c
src/afl-fuzz-run.c
#include <sys/time.h>
#include <signal.h>
#include <limits.h>
+#if !defined NAME_MAX
+#define NAME_MAX _XOPEN_NAME_MAX
+#endif
#include "cmplog.h"

workaround for Solaris: NAME_MAX is not defined