macro: Reduce transitive includes

This commit is contained in:
Daan De Meyer
2025-05-09 11:33:31 +02:00
parent 3b58245624
commit 3b7d332047
76 changed files with 128 additions and 48 deletions
+1
View File
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include <errno.h>
#include <stdbool.h>
#include "dlfcn-util.h"
+2
View File
@@ -2,6 +2,8 @@
#if HAVE_BLKID
#include <errno.h>
#include "blkid-util.h"
#include "string-util.h"
+1
View File
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include <errno.h>
#include <linux/if_bonding.h>
#include <netinet/in.h>
+1
View File
@@ -1,5 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#include "assert-util.h"
#include "bus-locator.h"
#include "macro.h"
+1
View File
@@ -2,6 +2,7 @@
#include <math.h>
#include "assert-util.h"
#include "color-util.h"
#include "macro.h"
+1
View File
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
+1
View File
@@ -9,6 +9,7 @@
#include <sys/file.h>
#include <sys/ioctl.h>
#include <sys/sendfile.h>
#include <sys/sysmacros.h>
#include <sys/xattr.h>
#include <unistd.h>
+3
View File
@@ -1,6 +1,9 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include <errno.h>
#include <pwd.h>
#include "macro.h"
typedef enum CoredumpFilter {
+1
View File
@@ -2,6 +2,7 @@
#include <errno.h>
#include <stdlib.h>
#include <sys/sysmacros.h>
#include <unistd.h>
#include "alloc-util.h"
+1
View File
@@ -8,6 +8,7 @@
# include <stringprep.h>
#endif
#include <errno.h>
#include <inttypes.h>
#if HAVE_LIBIDN2 || HAVE_LIBIDN
+1
View File
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include <errno.h>
#include <stdbool.h>
#include "macro.h"
+1
View File
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include <errno.h>
#include <linux/if_link.h>
#include <netinet/in.h>
+2
View File
@@ -1,6 +1,8 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include <errno.h>
#include "dlfcn-util.h"
#if HAVE_LIBARCHIVE
+2
View File
@@ -1,6 +1,8 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include <errno.h>
#include "iovec-util.h"
#include "macro.h"
+2
View File
@@ -1,6 +1,8 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include <errno.h>
#include "list.h"
#include "macro.h"
#include "memory-util.h"
+2
View File
@@ -1,5 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#include <errno.h>
#include "alloc-util.h"
#include "memory-util.h"
#include "random-util.h"
+1
View File
@@ -6,6 +6,7 @@
#include <sys/socket.h>
#include <sys/types.h>
#include "assert-util.h"
#include "label-util.h"
#include "macro.h"
+1
View File
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#include "alloc-util.h"
#include "assert-util.h"
#include "fileio.h"
#include "macro.h"
#include "smbios11.h"