[tor-commits] [tor/maint-0.2.4] Define SEEK_SET for platforms that lack it.

nickm at torproject.org nickm at torproject.org
Fri Jun 14 01:59:08 UTC 2013


commit 2338681efbdc8070c0cdfd0b9226fcdeb37f0538
Author: Nick Mathewson <nickm at torproject.org>
Date:   Thu Jun 13 21:56:35 2013 -0400

    Define SEEK_SET for platforms that lack it.
---
 src/common/compat.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/common/compat.c b/src/common/compat.c
index 24b44fb..69eb064 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





More information about the tor-commits mailing list