diff options
| author | Tobias Kortkamp <t@tobik.me> | 2019-12-10 18:13:08 +0100 |
|---|---|---|
| committer | Tobias Kortkamp <t@tobik.me> | 2019-12-10 18:13:08 +0100 |
| commit | fc2b5c5f7b321b0018abfce0803bceeff4504543 (patch) | |
| tree | f87f8c60f8e6cde44e051423eb531b37ad889f0e | |
| parent | 9ace7b584dabf562b29deeda9230064e305fcd30 (diff) | |
Fix build on FreeBSD again
json_ui.cc:29:9: error: use of undeclared identifier 'sprintf'
sprintf(buffer, R"("#%02x%02x%02x")", color.r, color.g, color.b);
^
1 error generated.
Regressed by 7cdbe1d3d24c1cc13bd7cbc3fe252f1e88747ffb
| -rw-r--r-- | src/json_ui.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/json_ui.cc b/src/json_ui.cc index 4691f609..b4c6528c 100644 --- a/src/json_ui.cc +++ b/src/json_ui.cc @@ -9,6 +9,7 @@ #include "ranges.hh" #include "string_utils.hh" +#include <cstdio> #include <utility> #include <unistd.h> |
