Guard msghdr_get_local_addr with ENABLE_HTTP3 macro

This commit is contained in:
Tatsuhiro Tsujikawa 2021-09-28 22:35:53 +09:00
parent 17d5503bf2
commit 318e0c8447
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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