diff options
author | kistlin | 2023-05-12 21:59:33 +0200 |
---|---|---|
committer | kistlin | 2023-05-12 21:59:33 +0200 |
commit | b498025e94151c034203692da48f7a93ccfbf3dd (patch) | |
tree | 5b1c802f5a9e6dc2a3ba7fc49363c55eef27d337 /001-gcc-13-1.patch | |
parent | 03aa29ec03709400d05812684dcd167b0bbc91d0 (diff) | |
download | aur-b498025e94151c034203692da48f7a93ccfbf3dd.tar.gz |
fix build issues with GCC 13.1+
upstream issue created: https://github.com/eProsima/Fast-DDS/issues/3514
Diffstat (limited to '001-gcc-13-1.patch')
-rw-r--r-- | 001-gcc-13-1.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/001-gcc-13-1.patch b/001-gcc-13-1.patch new file mode 100644 index 000000000000..1f6a41dbb5c0 --- /dev/null +++ b/001-gcc-13-1.patch @@ -0,0 +1,27 @@ +diff --git a/include/fastdds/rtps/transport/TransportDescriptorInterface.h b/include/fastdds/rtps/transport/TransportDescriptorInterface.h +index 149707736..30184d71a 100644 +--- a/include/fastdds/rtps/transport/TransportDescriptorInterface.h ++++ b/include/fastdds/rtps/transport/TransportDescriptorInterface.h +@@ -17,7 +17,7 @@ + + #include <fastrtps/fastrtps_dll.h> + +-#ifdef _WIN32 ++#if defined(_WIN32) || ((__GNUC__ >= 13) && (__GNUC_MINOR__ >= 1)) + #include <cstdint> + #endif // ifdef _WIN32 + #include <vector> +diff --git a/include/fastrtps/types/TypeNamesGenerator.h b/include/fastrtps/types/TypeNamesGenerator.h +index a8f45e013..152933316 100644 +--- a/include/fastrtps/types/TypeNamesGenerator.h ++++ b/include/fastrtps/types/TypeNamesGenerator.h +@@ -3,6 +3,9 @@ + + #include <fastrtps/fastrtps_dll.h> + ++#if defined(_WIN32) || ((__GNUC__ >= 13) && (__GNUC_MINOR__ >= 1)) ++#include <cstdint> ++#endif // ifdef _WIN32 + #include <string> + #include <vector> + |