vendor/libgit2/src/posix.h in rugged-0.26.0b5 vs vendor/libgit2/src/posix.h in rugged-0.26.0
- old
+ new
@@ -22,10 +22,14 @@
#define S_IFLNK 0120000
#undef _S_IFLNK
#define _S_IFLNK S_IFLNK
#endif
+#ifndef S_IWUSR
+#define S_IWUSR 00200
+#endif
+
#ifndef S_IXUSR
#define S_IXUSR 00100
#endif
#ifndef S_ISLNK
@@ -108,9 +112,15 @@
extern int p_getcwd(char *buffer_out, size_t size);
extern int p_rename(const char *from, const char *to);
extern int git__page_size(size_t *page_size);
extern int git__mmap_alignment(size_t *page_size);
+
+/* The number of times `p_fsync` has been called. Note that this is for
+ * test code only; it it not necessarily thread-safe and should not be
+ * relied upon in production.
+ */
+extern size_t p_fsync__cnt;
/**
* Platform-dependent methods
*/
#ifdef GIT_WIN32