[tor/master] Compilation workaround for windows, which lacks O_SYNC

16 Feb
2018
16 Feb
'18
1:16 p.m.
commit 200fc8c640341dde657bd5162b9468cbd07d2938 Author: Nick Mathewson <nickm@torproject.org> Date: Fri Feb 16 08:16:12 2018 -0500 Compilation workaround for windows, which lacks O_SYNC Bug not in any released Tor. --- src/or/keypin.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/or/keypin.c b/src/or/keypin.c index 66525cbf9..52bdff816 100644 --- a/src/or/keypin.c +++ b/src/or/keypin.c @@ -289,6 +289,9 @@ static int keypin_journal_fd = -1; int 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); if (fd < 0) goto err;
2654
Age (days ago)
2654
Last active (days ago)
0 comments
1 participants
participants (1)
-
nickm@torproject.org