From: Nick Mathewson Date: Fri, 14 Jun 2013 01:56:35 +0000 (-0400) Subject: Define SEEK_SET for platforms that lack it. X-Git-Tag: tor-0.2.4.13-alpha~2^2~2^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2338681efbdc8070c0cdfd0b9226fcdeb37f0538;p=thirdparty%2Ftor.git Define SEEK_SET for platforms that lack it. --- 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