mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 19:07:15 +03:00
e4339be13b
This lets us build some of the ports without patching out any of their IPv6 stuff.
24 lines
476 B
C++
24 lines
476 B
C++
/*
|
|
* Copyright (c) 2021, Gunnar Beutner <gbeutner@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibC/errno.h>
|
|
#include <LibC/net/if.h>
|
|
#include <LibC/netinet/in.h>
|
|
|
|
in6_addr in6addr_any = IN6ADDR_ANY_INIT;
|
|
|
|
unsigned int if_nametoindex([[maybe_unused]] const char* ifname)
|
|
{
|
|
errno = ENODEV;
|
|
return -1;
|
|
}
|
|
|
|
char* if_indextoname([[maybe_unused]] unsigned int ifindex, [[maybe_unused]] char* ifname)
|
|
{
|
|
errno = ENXIO;
|
|
return nullptr;
|
|
}
|