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 <info@bnoordhuis.nl>
make-http-max-header-size-gyp-configurable
Stephan Gatzka 8 years ago committed by Fedor Indutny
parent 05525c5fde
commit 291a32cc51

@ -29,11 +29,10 @@ extern "C" {
#define HTTP_PARSER_VERSION_MINOR 7
#define HTTP_PARSER_VERSION_PATCH 1
#include <sys/types.h>
#include <stddef.h>
#if defined(_WIN32) && !defined(__MINGW32__) && \
(!defined(_MSC_VER) || _MSC_VER<1600) && !defined(__WINE__)
#include <BaseTsd.h>
#include <stddef.h>
typedef __int8 int8_t;
typedef unsigned __int8 uint8_t;
typedef __int16 int16_t;

Loading…
Cancel
Save