0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-03 09:56:38 -05:00

fs: add missing <cassert> include

This is needed to prevent compilation failures once boost is removed,
however is still correct to include now, and reduces the diff in #20744.

<string> is extracted from the defines because it is used for Windows
and non-Windows code, i.e get_filesystem_error_message().
This commit is contained in:
fanquake 2021-12-24 16:24:38 +08:00
parent 21f781ad79
commit 486261dfcb
No known key found for this signature in database
GPG key ID: 2EEB9F5CC09526C1

View file

@ -7,7 +7,6 @@
#ifndef WIN32
#include <cstring>
#include <fcntl.h>
#include <string>
#include <sys/file.h>
#include <sys/utsname.h>
#include <unistd.h>
@ -20,6 +19,9 @@
#include <windows.h>
#endif
#include <cassert>
#include <string>
namespace fsbridge {
FILE *fopen(const fs::path& p, const char *mode)