summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/path.c2
-rw-r--r--src/unix/posix.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/path.c b/src/path.c
index c04b50622..c2c90e48d 100644
--- a/src/path.c
+++ b/src/path.c
@@ -891,7 +891,7 @@ void git_path_iconv_clear(git_path_iconv_t *ic)
int git_path_iconv(git_path_iconv_t *ic, const char **in, size_t *inlen)
{
- char *nfd = *in, *nfc;
+ char *nfd = (char*)*in, *nfc;
size_t nfdlen = *inlen, nfclen, wantlen = nfdlen, alloclen, rv;
int retry = 1;
diff --git a/src/unix/posix.h b/src/unix/posix.h
index 425e6bb1b..c852936be 100644
--- a/src/unix/posix.h
+++ b/src/unix/posix.h
@@ -10,6 +10,7 @@
#include <stdio.h>
#include <dirent.h>
#include <sys/param.h>
+#include <sys/time.h>
typedef int GIT_SOCKET;
#define INVALID_SOCKET -1