summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
Diffstat (limited to 'devel')
-rw-r--r--devel/fuzz/gnutls_ocsp_resp_parser_fuzzer.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/devel/fuzz/gnutls_ocsp_resp_parser_fuzzer.cc b/devel/fuzz/gnutls_ocsp_resp_parser_fuzzer.cc
index 5e8657c2cc..1e7b8a0857 100644
--- a/devel/fuzz/gnutls_ocsp_resp_parser_fuzzer.cc
+++ b/devel/fuzz/gnutls_ocsp_resp_parser_fuzzer.cc
@@ -22,8 +22,10 @@
#include <gnutls/gnutls.h>
#include <gnutls/ocsp.h>
-
-extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
+#ifdef __cplusplus
+extern "C"
+#endif
+int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
gnutls_datum_t raw;
gnutls_datum_t out;
gnutls_ocsp_resp_t resp;