diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-06-13 21:56:35 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-06-13 21:56:35 -0400 |
commit | 2338681efbdc8070c0cdfd0b9226fcdeb37f0538 (patch) | |
tree | b372abd590396a719461ac9a4da8872ea30fb46d /src/common | |
parent | caa0d15c4902a8d376a2a79bfbfdb21bf047366a (diff) | |
download | tor-2338681efbdc8070c0cdfd0b9226fcdeb37f0538.tar.gz tor-2338681efbdc8070c0cdfd0b9226fcdeb37f0538.zip |
Define SEEK_SET for platforms that lack it.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/compat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index 24b44fb055..69eb0643d0 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -870,6 +870,9 @@ tor_lockfile_unlock(tor_lockfile_t *lockfile) /** @{ */ /** Some old versions of Unix didn't define constants for these values, * and instead expect you to say 0, 1, or 2. */ +#ifndef SEEK_SET +#define SEEK_SET 0 +#endif #ifndef SEEK_CUR #define SEEK_CUR 1 #endif |