diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-12-05 02:09:47 +0200 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-12-22 00:02:36 -0800 |
commit | 7b24fc6fb891294da4d54294fc6bccee7262992c (patch) | |
tree | 6cf58e52f27c8967bedd0e08ea94c33a6cb4af48 /Userland/Libraries/LibC/ifaddrs.cpp | |
parent | 468ae105d87ff7f381565958444030a4f55729fc (diff) | |
download | serenity-7b24fc6fb891294da4d54294fc6bccee7262992c.zip |
Kernel+LibC: Stub out getifaddrs() and freeifaddrs()
These are required for some ports.
Diffstat (limited to 'Userland/Libraries/LibC/ifaddrs.cpp')
-rw-r--r-- | Userland/Libraries/LibC/ifaddrs.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Userland/Libraries/LibC/ifaddrs.cpp b/Userland/Libraries/LibC/ifaddrs.cpp new file mode 100644 index 0000000000..a42345a6e4 --- /dev/null +++ b/Userland/Libraries/LibC/ifaddrs.cpp @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2021, Idan Horowitz <idan.horowitz@serenityos.org> + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#include <LibC/errno.h> +#include <LibC/ifaddrs.h> + +int getifaddrs(struct ifaddrs**) +{ + errno = ENOSYS; + return -1; +} + +void freeifaddrs(struct ifaddrs*) +{ +} |