Skip to content
Snippets Groups Projects
Commit 03958ad9 authored by Ondřej Surý's avatar Ondřej Surý
Browse files

Merge branch 'afl_loop' into 'master'

Get src/utils/knotd/main.c correctly from $(top_srcdir)

See merge request !630
parents eca15bc2 58585dca
No related branches found
No related tags found
1 merge request!630Get src/utils/knotd/main.c correctly from $(top_srcdir)
......@@ -29,6 +29,6 @@ BUILT_SOURCES = wrap/main.c
CLEANFILES = wrap/main.c
wrap/main.c: Makefile $(top_builddir)/src/utils/knotd/main.c
echo '#include "afl-loop.h"' > $@
sed -e 's/for (;;)/while (__AFL_LOOP(1000))/' $(top_builddir)/src/utils/knotd/main.c >>$@
$(SED) -e 's/for (;;)/while (__AFL_LOOP(1000))/' $(top_srcdir)/src/utils/knotd/main.c >>$@
check-compile: $(check_PROGRAMS)
#pragma once
#ifndef __AFL_COMPILER
#define __AFL_LOOP(x) (0)
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment