blob: 26ce712479ffcf942a9b2658d6b62499dfae8842 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- mozilla/ipc/chromium/src/chrome/common/ipc_channel_posix.cc~
+++ mozilla/ipc/chromium/src/chrome/common/ipc_channel_posix.cc
@@ -133,7 +133,12 @@ int ChannelNameToClientFD(const std::string& channel_id) {
}
//------------------------------------------------------------------------------
+#if !defined(__clang__) && defined(__GNUC__) && __GNUC_MINOR__ <= 2
+sockaddr_un sizecheck;
+const size_t kMaxPipeNameLength = sizeof(sizecheck.sun_path);
+#else
const size_t kMaxPipeNameLength = sizeof(sockaddr_un::sun_path);
+#endif
// Creates a Fifo with the specified name ready to listen on.
bool CreateServerFifo(const std::string& pipe_name, int* server_listen_fd) {
|