summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2018-03-29 10:18:51 +0100
committerPatrick Steinhardt <ps@pks.im>2018-03-29 13:37:45 +0100
commitfbe52fa324c8afcc0955b63395ffe864096e3fe5 (patch)
tree14b44e06d3e2019328b2e3474783473e1f2eebe8
parent9e8bc7260969f8a1c8f5aba1930fd8f65947d0ad (diff)
downloadlibgit2-fbe52fa324c8afcc0955b63395ffe864096e3fe5.tar.gz
util: fix missing headers for MinGW environments
There are multiple references to undefined functions in the Microsoft builds. Add headers to make them known.
-rw-r--r--src/util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 34841df4f..2955b7ca0 100644
--- a/src/util.c
+++ b/src/util.c
@@ -10,7 +10,12 @@
#include "common.h"
#ifdef GIT_WIN32
+# include "win32/utf-conv.h"
# include "win32/w32_buffer.h"
+
+# ifdef HAVE_QSORT_S
+# include <search.h>
+# endif
#endif
#ifdef _MSC_VER