Define SEEK_SET for platforms that lack it.

This commit is contained in:
Nick Mathewson
2013-06-13 21:56:35 -04:00
parent caa0d15c49
commit 2338681efb
+3
View File
@@ -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