]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Define SEEK_SET for platforms that lack it.
authorNick Mathewson <nickm@torproject.org>
Fri, 14 Jun 2013 01:56:35 +0000 (21:56 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 14 Jun 2013 01:56:35 +0000 (21:56 -0400)
src/common/compat.c

index 24b44fb055e9632257d1a665a816724a358128b7..69eb0643d063ac163e062205126f63f72955fb67 100644 (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