Explorar o código

Define SEEK_SET for platforms that lack it.

Nick Mathewson %!s(int64=12) %!d(string=hai) anos
pai
achega
2338681efb
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/common/compat.c

+ 3 - 0
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