Skip to content
This repository was archived by the owner on Nov 6, 2022. It is now read-only.

Commit 291a32c

Browse files
Stephan Gatzkaindutny
authored andcommitted
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: #360 Reviewed-By: Ben Noordhuis <[email protected]>
1 parent 05525c5 commit 291a32c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

http_parser.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@ extern "C" {
2929
#define HTTP_PARSER_VERSION_MINOR 7
3030
#define HTTP_PARSER_VERSION_PATCH 1
3131

32-
#include <sys/types.h>
32+
#include <stddef.h>
3333
#if defined(_WIN32) && !defined(__MINGW32__) && \
3434
(!defined(_MSC_VER) || _MSC_VER<1600) && !defined(__WINE__)
3535
#include <BaseTsd.h>
36-
#include <stddef.h>
3736
typedef __int8 int8_t;
3837
typedef unsigned __int8 uint8_t;
3938
typedef __int16 int16_t;

0 commit comments

Comments
 (0)