diff --git a/repos/libports/src/lib/libc/socket_operations.cc b/repos/libports/src/lib/libc/socket_operations.cc index 4803c12ad..dcd046753 100644 --- a/repos/libports/src/lib/libc/socket_operations.cc +++ b/repos/libports/src/lib/libc/socket_operations.cc @@ -22,12 +22,12 @@ extern "C" { #include #include -#include } /* libc-internal includes */ #include #include +#include using namespace Libc; @@ -52,7 +52,7 @@ extern "C" int getpeername(int libc_fd, sockaddr *addr, socklen_t *addrlen) if (*config_socket()) return socket_fs_getpeername(libc_fd, addr, addrlen); - FD_FUNC_WRAPPER(getpeername, libc_fd, addr, addrlen); + return Libc::Errno(ENOTSOCK); }