mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 06:04:57 +00:00
LookupServer: Fix building on GNU Hurd
The Hurd has sin_len, just like the BSDs. This happened to hit a clang-format bug, and we have been advised to disable clang-format for this block of code for now.
This commit is contained in:
parent
29da1d7c23
commit
fcced97509
1 changed files with 5 additions and 1 deletions
|
@ -36,8 +36,11 @@ private:
|
|||
|
||||
Name m_hostname;
|
||||
|
||||
// https://github.com/llvm/llvm-project/issues/56685
|
||||
// https://github.com/llvm/llvm-project/pull/65409
|
||||
// clang-format off
|
||||
static constexpr sockaddr_in mdns_addr {
|
||||
#ifdef AK_OS_BSD_GENERIC
|
||||
#if defined(AK_OS_BSD_GENERIC) || defined(AK_OS_GNU_HURD)
|
||||
.sin_len = sizeof(struct sockaddr_in),
|
||||
#endif
|
||||
.sin_family = AF_INET,
|
||||
|
@ -47,6 +50,7 @@ private:
|
|||
.sin_addr = { 0xfb0000e0 },
|
||||
.sin_zero = { 0 }
|
||||
};
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue