Add libwebsocket 3.0 BSD fix

This commit is contained in:
Fabio Alessandrelli 2018-06-07 15:35:04 +02:00
parent e56a3c1dc4
commit 333e398413
2 changed files with 4 additions and 1 deletions

View File

@ -252,6 +252,8 @@ File extracted from upstream source:
- From `roles/ws` exclude `ext` folder.
- From `tls` exclude `openssl` folder.
- Also copy `win32helpers/` from `win32port/` inside `thirdparty/libwebsockets`
- A small fix has been added in `libwebsockets/libwebsockets.h` to `#include <sys/socket.h>` for the BSD family.
This change has been PRed upstream, and should be merged before the next update. Remember to check and remove this line.
Important: `lws_config.h` and `lws_config_private.h` contains custom
Godot build configurations, check them out when updating.

View File

@ -106,7 +106,8 @@ typedef unsigned long long lws_intptr_t;
#include <sys/capability.h>
#endif
#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__QNX__)
#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__QNX__) || defined(__OpenBSD__)
#include <sys/socket.h>
#include <netinet/in.h>
#endif