diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Configuration.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Configuration.cpp b/src/Configuration.cpp index 67a91dae..7d3d9c40 100644 --- a/src/Configuration.cpp +++ b/src/Configuration.cpp @@ -290,8 +290,8 @@ Configuration::save(URIMap& uri_map, } // Attempt to open file for writing - const std::unique_ptr<FILE, decltype(&fclose)> file{fopen(path.c_str(), "w"), - &fclose}; + const std::unique_ptr<FILE, int (*)(FILE*)> file{ + fopen(path.c_str(), "w"), &fclose}; if (!file) { throw FileError(fmt("Failed to open file %1% (%2%)", path, strerror(errno))); |