Commit e0af2517bf9055441cfa34c45087c0ee9defe7e9

Vicent Marti 2014-08-05T20:28:22

Merge pull request #2503 from jacquesg/solaris-http-parser Solaris doesn't necessarily have stdint.h, use inttypes.h

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/deps/http-parser/http_parser.h b/deps/http-parser/http_parser.h
index 4f20396..67e1d95 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