mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-09-20 13:06:20 +02:00
Compilation workaround for windows, which lacks O_SYNC
Bug not in any released Tor.
This commit is contained in:
parent
5a9ada342f
commit
200fc8c640
@ -289,6 +289,9 @@ static int keypin_journal_fd = -1;
|
|||||||
int
|
int
|
||||||
keypin_open_journal(const char *fname)
|
keypin_open_journal(const char *fname)
|
||||||
{
|
{
|
||||||
|
#ifndef O_SYNC
|
||||||
|
#define O_SYNC 0
|
||||||
|
#endif
|
||||||
int fd = tor_open_cloexec(fname, O_WRONLY|O_CREAT|O_BINARY|O_SYNC, 0600);
|
int fd = tor_open_cloexec(fname, O_WRONLY|O_CREAT|O_BINARY|O_SYNC, 0600);
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
goto err;
|
goto err;
|
||||||
|
Loading…
Reference in New Issue
Block a user