config: explicitly use environ(7) after b03c8970e6 (#1708)

src/config/ConfigManager.cpp:40:23: error: use of undeclared identifier 'environ'
    for (char** env = environ; *env; ++env) {
                      ^
This commit is contained in:
Jan Beich 2023-03-05 18:39:46 +00:00 committed by GitHub
parent 0c8d1ba4a8
commit 7739b776cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,8 @@
#include <fstream> #include <fstream>
#include <iostream> #include <iostream>
extern "C" char** environ;
CConfigManager::CConfigManager() { CConfigManager::CConfigManager() {
configValues["general:col.active_border"].data = std::make_shared<CGradientValueData>(0xffffffff); configValues["general:col.active_border"].data = std::make_shared<CGradientValueData>(0xffffffff);
configValues["general:col.inactive_border"].data = std::make_shared<CGradientValueData>(0xff444444); configValues["general:col.inactive_border"].data = std::make_shared<CGradientValueData>(0xff444444);