diff --git a/Makefile.am b/Makefile.am index 302b58e1..69997550 100644 --- a/Makefile.am +++ b/Makefile.am @@ -993,6 +993,7 @@ fuzzer-api: $(top_srcdir)/unittest/fuzzers/fuzzer-api.cpp -I $(top_srcdir)/src/ccmain \ -I $(top_srcdir)/src/ccstruct \ -I $(top_srcdir)/src/ccutil \ + $(LEPTONICA_CFLAGS) \ $(OPENMP_CXXFLAGS) \ $< \ $(builddir)/.libs/libtesseract.a \ diff --git a/unittest/fuzzers/fuzzer-api.cpp b/unittest/fuzzers/fuzzer-api.cpp index 86ff5214..a1e4e7c4 100644 --- a/unittest/fuzzers/fuzzer-api.cpp +++ b/unittest/fuzzers/fuzzer-api.cpp @@ -1,5 +1,5 @@ #include -#include "leptonica/allheaders.h" +#include #include // for dirname #include // for printf