Fixes #1306 - transitive dependencies in header files (#1310)

* uSockets/src/internal/networking/bsd.h
Add #include "libusockets.h" for LIBUS_SOCKET_DESCRIPTOR

* uWebSockets/src/AsyncSocket.h
Add #include <cstring> for memcpy
Add #include "libusockets.h" for us_socket

* uWebSockets/src/HttpResponse.h
Add #include "HttpContext.h" for HttpContext

* uWebSockets/src/PerMessageDeflate.h
Add #include <cstdint> for uint32_t

* uWebSockets/src/WebSocketContextData.h
Add #include "Loop.h" for Loop::get()
Add #include "AsyncSocket.h" for AsyncSocket

* uWebSockets/src/WebSocketProtocol.h
Add #include <libusockets.h> for WIN32_EXPORT macro
This commit is contained in:
ramblehead
2021-08-28 00:21:31 +01:00
committed by GitHub
parent d94bf2cd43
commit 6048d026d0
5 changed files with 12 additions and 0 deletions
+4
View File
@@ -24,6 +24,10 @@
* to unsigned length for everything to/from uSockets - this would however remove the opportunity
* to signal error with -1 (which is how the entire UNIX syscalling is built). */
#include <cstring>
#include "libusockets.h"
#include "LoopData.h"
#include "AsyncSocketData.h"
+1
View File
@@ -22,6 +22,7 @@
#include "AsyncSocket.h"
#include "HttpResponseData.h"
#include "HttpContext.h"
#include "HttpContextData.h"
#include "Utilities.h"
+2
View File
@@ -20,6 +20,8 @@
#ifndef UWS_PERMESSAGEDEFLATE_H
#define UWS_PERMESSAGEDEFLATE_H
#include <cstdint>
/* We always define these options no matter if ZLIB is enabled or not */
namespace uWS {
/* Compressor mode is HIGH8(windowBits), LOW8(memLevel) */
+3
View File
@@ -18,6 +18,9 @@
#ifndef UWS_WEBSOCKETCONTEXTDATA_H
#define UWS_WEBSOCKETCONTEXTDATA_H
#include "Loop.h"
#include "AsyncSocket.h"
#include "MoveOnlyFunction.h"
#include <string_view>
#include <vector>
+2
View File
@@ -18,6 +18,8 @@
#ifndef UWS_WEBSOCKETPROTOCOL_H
#define UWS_WEBSOCKETPROTOCOL_H
#include <libusockets.h>
#include <cstdint>
#include <cstring>
#include <cstdlib>