From: Daan De Meyer Date: Sat, 7 Jun 2025 17:23:45 +0000 (+0200) Subject: forward: Drop socklen_t forward declaration X-Git-Tag: v258-rc1~357 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1b4645d762d0d31e46173a389742978c32700901;p=thirdparty%2Fsystemd.git forward: Drop socklen_t forward declaration This is glibc specific and doesn't exist on musl, since removing only means adding one more include in selinux-util.h, let's drop it. Fixes #37779 --- diff --git a/src/basic/forward.h b/src/basic/forward.h index 0456772980d..df3bdee2336 100644 --- a/src/basic/forward.h +++ b/src/basic/forward.h @@ -57,7 +57,6 @@ struct ucred; * used for C++ symbol name mangling, they're effectively part of the ABI and won't actually change. */ typedef struct _IO_FILE FILE; typedef struct __dirstream DIR; -typedef __socklen_t socklen_t; /* 3rd-party library forward declarations */ diff --git a/src/journal/journald-audit.h b/src/journal/journald-audit.h index eb4fe3e6138..17ba2efbbb6 100644 --- a/src/journal/journald-audit.h +++ b/src/journal/journald-audit.h @@ -1,6 +1,8 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ #pragma once +#include + #include "journald-forward.h" void manager_process_audit_message(Manager *m, const void *buffer, size_t buffer_size, const struct ucred *ucred, const union sockaddr_union *sa, socklen_t salen); diff --git a/src/shared/selinux-util.h b/src/shared/selinux-util.h index 9c5707f9fad..a9180c4c996 100644 --- a/src/shared/selinux-util.h +++ b/src/shared/selinux-util.h @@ -1,6 +1,8 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ #pragma once +#include + #include "forward.h" #if HAVE_SELINUX