aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2020-09-15 11:34:20 +0200
committerregnat <rg@regnat.ovh>2020-09-16 13:53:09 +0200
commit93c0e14a308d513cf61daa7a003417e42a7dc2f8 (patch)
treeb46286f1908b6a3d39516e5c0501b67bb29c3a7c /src
parentfc2d31c423377cea2355e7f7a4ce75e64a7f3620 (diff)
Include the full nlohmann/json header in config.hh
It is apparently required for using `toJSONObject()`, which we do inside the header file (because it's in a template). This was accidentally working when building Nix itself (presumably because `config.hh` was always included after `nlohman/json.hpp`) but caused a (pretty dirty) build failure in the perl bindings package.
Diffstat (limited to 'src')
-rw-r--r--src/libutil/config.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/config.hh b/src/libutil/config.hh
index 42fc856e0..18fa9dea8 100644
--- a/src/libutil/config.hh
+++ b/src/libutil/config.hh
@@ -4,7 +4,7 @@
#include "types.hh"
-#include <nlohmann/json_fwd.hpp>
+#include <nlohmann/json.hpp>
#pragma once