vendor/libgit2/src/posix.h in rugged-0.28.5 vs vendor/libgit2/src/posix.h in rugged-0.99.0

- old
+ new

@@ -9,11 +9,10 @@ #include "common.h" #include <fcntl.h> #include <time.h> -#include "fnmatch.h" /* stat: file mode type testing macros */ #ifndef S_IFGITLINK #define S_IFGITLINK 0160000 #define S_ISGITLINK(m) (((m) & S_IFMT) == S_IFGITLINK) @@ -86,9 +85,21 @@ /* define some standard errnos that the runtime may be missing. for example, * mingw lacks EAFNOSUPPORT. */ #ifndef EAFNOSUPPORT #define EAFNOSUPPORT (INT_MAX-1) +#endif + +/* Provide a 64-bit size for offsets. */ + +#if defined(_MSC_VER) +typedef __int64 off64_t; +#elif defined(__HAIKU__) +typedef __haiku_std_int64 off64_t; +#elif defined(__APPLE__) +typedef __int64_t off64_t; +#else +typedef int64_t off64_t; #endif typedef int git_file; /**