summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti <vicent@github.com>2014-08-05 20:28:22 +0200
committerVicent Marti <vicent@github.com>2014-08-05 20:28:22 +0200
commite0af2517bf9055441cfa34c45087c0ee9defe7e9 (patch)
treef4e9202715acd2b79871c54f7b8124a6ac0c0f3c
parent59e3f45b6150984e6a74ce79062caa459eda369f (diff)
parent66d1595436489399dbd86073fdc78aa36c307abc (diff)
downloadlibgit2-e0af2517bf9055441cfa34c45087c0ee9defe7e9.tar.gz
Merge pull request #2503 from jacquesg/solaris-http-parser
Solaris doesn't necessarily have stdint.h, use inttypes.h
-rw-r--r--deps/http-parser/http_parser.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/deps/http-parser/http_parser.h b/deps/http-parser/http_parser.h
index 4f20396c6..67e1d95dd 100644
--- a/deps/http-parser/http_parser.h
+++ b/deps/http-parser/http_parser.h
@@ -40,6 +40,8 @@ typedef __int64 int64_t;
typedef unsigned __int64 uint64_t;
typedef SIZE_T size_t;
typedef SSIZE_T ssize_t;
+#elif defined(__sun) || defined(__sun__)
+#include <sys/inttypes.h>
#else
#include <stdint.h>
#endif