From 0fb92dc65bac589880c46c749b05773b4243aa82 Mon Sep 17 00:00:00 2001 From: "Dusan Cervenka (nxa14949)" Date: Thu, 19 Jul 2018 16:08:33 +0200 Subject: [PATCH] get rid of sys/types.h --- lib/includes/nghttp2/nghttp2.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/includes/nghttp2/nghttp2.h b/lib/includes/nghttp2/nghttp2.h index 4756ea64..54a30064 100644 --- a/lib/includes/nghttp2/nghttp2.h +++ b/lib/includes/nghttp2/nghttp2.h @@ -35,6 +35,10 @@ extern "C" { #endif +#ifdef HAVE_CONFIG_H +# include +#endif /* HAVE_CONFIG_H */ + #include #if defined(_MSC_VER) && (_MSC_VER < 1800) /* MSVC < 2013 does not have inttypes.h because it is not C99 @@ -44,7 +48,11 @@ extern "C" { #else /* !defined(_MSC_VER) || (_MSC_VER >= 1800) */ # include #endif /* !defined(_MSC_VER) || (_MSC_VER >= 1800) */ -#include + +#if !defined(HAS_NO_SYS_TYPES) +# include +#endif + #include #include