Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2013-08-20 01:44:17 +0400
committerEdward Thomson <ethomson@microsoft.com>2013-08-20 01:44:17 +0400
commit86967cc579ee9e8c1a209a76c12605dd24dcf6cf (patch)
treed7c1318f8fc0644279837d69cb32ed5998c957fb /src/posix.h
parent6d69fbce31c391c7a7739f8156b0d63f399c53bf (diff)
Use time(2) to get the time
We didn't use the added precision in gettimeofday, so remove it. This prevents us from having an unnecessary reimplementation on win32.
Diffstat (limited to 'src/posix.h')
-rw-r--r--src/posix.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/posix.h b/src/posix.h
index ea97a1349..de2aa0b73 100644
--- a/src/posix.h
+++ b/src/posix.h
@@ -71,16 +71,12 @@ typedef int GIT_SOCKET;
#define p_localtime_r localtime_r
#define p_gmtime_r gmtime_r
-#define p_gettimeofday gettimeofday
#else
typedef SOCKET GIT_SOCKET;
-struct timezone;
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