Guard msghdr_get_local_addr with ENABLE_HTTP3 macro
This commit is contained in:
parent
17d5503bf2
commit
318e0c8447
|
@ -1688,6 +1688,7 @@ int daemonize(int nochdir, int noclose) {
|
|||
#endif // !defined(__APPLE__)
|
||||
}
|
||||
|
||||
#ifdef ENABLE_HTTP3
|
||||
int msghdr_get_local_addr(Address &dest, msghdr *msg, int family) {
|
||||
switch (family) {
|
||||
case AF_INET:
|
||||
|
@ -1721,6 +1722,7 @@ int msghdr_get_local_addr(Address &dest, msghdr *msg, int family) {
|
|||
|
||||
return -1;
|
||||
}
|
||||
#endif // ENABLE_HTTP3
|
||||
|
||||
} // namespace util
|
||||
|
||||
|
|
|
@ -916,7 +916,9 @@ std::mt19937 make_mt19937();
|
|||
// daemon() using fork().
|
||||
int daemonize(int nochdir, int noclose);
|
||||
|
||||
#ifdef ENABLE_HTTP3
|
||||
int msghdr_get_local_addr(Address &dest, msghdr *msg, int family);
|
||||
#endif // ENABLE_HTTP3
|
||||
|
||||
} // namespace util
|
||||
|
||||
|
|
Loading…
Reference in New Issue