From 291a32cc51698318adfbe81ca24e77da1a735365 Mon Sep 17 00:00:00 2001 From: Stephan Gatzka Date: Wed, 15 Mar 2017 17:46:55 +0100 Subject: [PATCH] Include stddef.h instead of sys/types.h. The include is required for type size_t. stddef.h should be available on every platform, sys/types.h is not. PR-URL: https://github.com/nodejs/http-parser/pull/360 Reviewed-By: Ben Noordhuis --- http_parser.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/http_parser.h b/http_parser.h index 45c72a0..fd2a564 100644 --- a/http_parser.h +++ b/http_parser.h @@ -29,11 +29,10 @@ extern "C" { #define HTTP_PARSER_VERSION_MINOR 7 #define HTTP_PARSER_VERSION_PATCH 1 -#include +#include #if defined(_WIN32) && !defined(__MINGW32__) && \ (!defined(_MSC_VER) || _MSC_VER<1600) && !defined(__WINE__) #include -#include typedef __int8 int8_t; typedef unsigned __int8 uint8_t; typedef __int16 int16_t;