Skip C++ incompatible header in main libnetdata header (#10737)
vkalintiris committed
Mar 10, 2021 at 22:26 UTC
10bb023852a8a61954c01d6a6685468e7326a867
1 file changed
+1
-1
libnetdata/libnetdata.h
+1
-1
@@ -320,7 +320,7 @@ extern char *netdata_configured_host_prefix;
320
#include "log/log.h"
321
#include "procfile/procfile.h"
322
#include "dictionary/dictionary.h"
323
-#ifdef HAVE_LIBBPF
323
+#if defined(HAVE_LIBBPF) && !defined(__cplusplus)
324
#include "ebpf/ebpf.h"
325
#endif
326
#include "eval/eval.h"