diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
commit | 6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch) | |
tree | a68f146d7fa01f0134297619fbe7e33db084e0aa /dom/media/webrtc/transport/third_party/nICEr/non-unified-build.patch | |
parent | Initial commit. (diff) | |
download | thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.tar.xz thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.zip |
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/media/webrtc/transport/third_party/nICEr/non-unified-build.patch')
-rw-r--r-- | dom/media/webrtc/transport/third_party/nICEr/non-unified-build.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dom/media/webrtc/transport/third_party/nICEr/non-unified-build.patch b/dom/media/webrtc/transport/third_party/nICEr/non-unified-build.patch new file mode 100644 index 0000000000..41f206e67a --- /dev/null +++ b/dom/media/webrtc/transport/third_party/nICEr/non-unified-build.patch @@ -0,0 +1,40 @@ +diff --git a/src/net/nr_socket_wrapper.c b/src/net/nr_socket_wrapper.c +index 0c9ec5674407d..4ad59527c12ec 100644 +--- a/src/net/nr_socket_wrapper.c ++++ b/src/net/nr_socket_wrapper.c +@@ -36,6 +36,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + #include <nr_api.h> + #include "nr_socket_wrapper.h" + ++#include <assert.h> ++ + int nr_socket_wrapper_factory_create_int(void *obj, nr_socket_wrapper_factory_vtbl *vtbl, + nr_socket_wrapper_factory **wrapperp) + { +diff --git a/src/net/transport_addr.h b/nICEr/src/net/transport_addr.h +index c75c70a1d94fa..1783d2e4506a8 100644 +--- a/src/net/transport_addr.h ++++ b/src/net/transport_addr.h +@@ -38,7 +38,22 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + #include <stdbool.h> + #include <sys/types.h> + #ifdef WIN32 ++ ++// FIXME: This is dangerous, but exactly the pattern used in ++// nrappkit/src/port/win32/include/csi_platform.h ++// Not good because INT8 are typedefed to different values in ++// <winsock2.h> and <r_types.h>. ++// { ++ ++#define UINT8 UBLAH_IGNORE_ME_PLEASE ++#define INT8 BLAH_IGNORE_ME_PLEASE + #include <winsock2.h> ++#undef UINT8 ++#undef INT8 ++#include <r_types.h> ++ ++// } ++ + #include <ws2tcpip.h> + #else + #include <sys/socket.h> |