summaryrefslogtreecommitdiff
path: root/src/posix.h
diff options
context:
space:
mode:
authorBen Straub <bstraub@github.com>2012-06-06 13:24:25 -0700
committerBen Straub <bstraub@github.com>2012-06-06 13:24:25 -0700
commit9ecf860d48b39241a2dce61dd33455816064d56b (patch)
treeee4665b2ef70ce2412b73f0a4692de2e769427ba /src/posix.h
parent1a728066c3b307a71c04f746bb6f322dacd50938 (diff)
downloadlibgit2-9ecf860d48b39241a2dce61dd33455816064d56b.tar.gz
Rename posix wrappers with 'p_' prefix.
Diffstat (limited to 'src/posix.h')
-rw-r--r--src/posix.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/posix.h b/src/posix.h
index d020d94ac..3f52f9b72 100644
--- a/src/posix.h
+++ b/src/posix.h
@@ -59,9 +59,17 @@ extern int p_rename(const char *from, const char *to);
typedef int GIT_SOCKET;
#define INVALID_SOCKET -1
+#define p_localtime_r localtime_r
+#define p_gmtime_r gmtime_r
+#define p_gettimeofday gettimeofday
+
#else
typedef SOCKET GIT_SOCKET;
+extern struct tm * p_localtime_r (const time_t *timer, struct tm *result);
+extern struct tm * p_gmtime_r (const time_t *timer, struct tm *result);
+extern int p_gettimeofday(struct timeval *tv, struct timezone *tz);
+
#endif