[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 2338681efbdc8070c0cdfd0b9226fcdeb37f0538
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits