]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
forward: Drop socklen_t forward declaration
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 7 Jun 2025 17:23:45 +0000 (19:23 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 8 Jun 2025 01:58:56 +0000 (10:58 +0900)
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

src/basic/forward.h
src/journal/journald-audit.h
src/shared/selinux-util.h

index 0456772980d0c9af460fb011c68a98454f0bf4c6..df3bdee2336923a200f09a6c8b5d54dd595827e0 100644 (file)
@@ -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 */
 
index eb4fe3e613890f2beeb11297e6cc6455af428e84..17ba2efbbb65bf85b551249b75977be9b0c45d84 100644 (file)
@@ -1,6 +1,8 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
+#include <sys/socket.h>
+
 #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);
index 9c5707f9fad07d4fcd4b58e04bc716b151d0754b..a9180c4c9969ecc7ecf53a6bfa20a412d5b8655f 100644 (file)
@@ -1,6 +1,8 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
+#include <sys/socket.h>
+
 #include "forward.h"
 
 #if HAVE_SELINUX