diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-02-16 08:16:12 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-02-16 08:16:12 -0500 |
commit | 200fc8c640341dde657bd5162b9468cbd07d2938 (patch) | |
tree | 6c90b1d4af54e440144220a5d9e23db6b3c4850b /src/or/keypin.c | |
parent | 5a9ada342fb17a7c3ba69efbdd548ec278b0e070 (diff) | |
download | tor-200fc8c640341dde657bd5162b9468cbd07d2938.tar.gz tor-200fc8c640341dde657bd5162b9468cbd07d2938.zip |
Compilation workaround for windows, which lacks O_SYNC
Bug not in any released Tor.
Diffstat (limited to 'src/or/keypin.c')
-rw-r--r-- | src/or/keypin.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/keypin.c b/src/or/keypin.c index 66525cbf90..52bdff816c 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; |