aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-12-09 08:45:32 -0500
committerJack Lloyd <[email protected]>2016-12-09 08:45:32 -0500
commite6e1e1037704578d2b26d38869f4eb9eb5ea2a6e (patch)
tree65dbb9715e7dcb58853ba07bdcff9ba971937b3d /src
parentb9de14fd8ce50064870d57e366ce99720ae9f4b8 (diff)
Fix fuzzer builds [ci skip]
Diffstat (limited to 'src')
-rw-r--r--src/extra_tests/fuzzers/jigs/driver.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/extra_tests/fuzzers/jigs/driver.h b/src/extra_tests/fuzzers/jigs/driver.h
index aea7274a1..3eab8623d 100644
--- a/src/extra_tests/fuzzers/jigs/driver.h
+++ b/src/extra_tests/fuzzers/jigs/driver.h
@@ -13,6 +13,7 @@
#include <stdlib.h> // for setenv
#include <botan/exceptn.h>
#include <botan/rng.h>
+#include <botan/chacha.h>
using namespace Botan;
@@ -68,11 +69,9 @@ int main(int argc, char* argv[])
#endif
-#endif
-
// Some helpers for the fuzzer jigs
-Botan::RandomNumberGenerator& fuzzer_rng()
+inline Botan::RandomNumberGenerator& fuzzer_rng()
{
class ChaCha20_RNG : public Botan::RandomNumberGenerator
{
@@ -118,3 +117,5 @@ Botan::RandomNumberGenerator& fuzzer_rng()
<< __LINE__ << ":" << __FILE__ << std::endl; \
abort(); \
} } while(0)
+
+#endif