void-packages/srcpkgs/pulseeffects-legacy/patches/boost-1.80.patch

20 lines
559 B
Diff

--- a/src/general_settings_ui.cpp
+++ b/src/general_settings_ui.cpp
@@ -20,6 +20,7 @@
#include "general_settings_ui.hpp"
#include <giomm/file.h>
#include <glibmm.h>
+#include <fstream>
#include <boost/filesystem.hpp>
#include "util.hpp"
@@ -176,7 +177,7 @@ auto GeneralSettingsUi::on_enable_autost
if (state) {
if (!boost::filesystem::exists(autostart_file)) {
- boost::filesystem::ofstream ofs{autostart_file};
+ std::ofstream ofs{autostart_file.native()};
ofs << "[Desktop Entry]\n";
ofs << "Name=PulseEffects\n";