From fc56df38106f664def119611d302d20d0ea65e67 Mon Sep 17 00:00:00 2001 From: listout Date: Fri, 5 May 2023 11:07:20 +0530 Subject: unconditionally include stdio.h and locale.h On musl mate-sensor-applet fails to build with error message saying "LC_NUMERIC undeclared". As suggested in issue mate-desktop#123, removing the include guards around #include and #include Signed-off-by: listout --- configure.ac | 1 - plugins/acpi/acpi-plugin.c | 3 --- plugins/i2c-proc/i2c-proc-plugin.c | 6 ------ plugins/i2c-sys/i2c-sys-plugin.c | 3 --- plugins/i8k/i8k-plugin.c | 3 --- plugins/ibm-acpi/ibm-acpi-plugin.c | 3 --- plugins/omnibook/omnibook-plugin.c | 3 --- plugins/pmu-sys/pmu-sys-plugin.c | 3 --- plugins/smu-sys/smu-sys-plugin.c | 3 --- 9 files changed, 28 deletions(-) diff --git a/configure.ac b/configure.ac index e9cfd33..bd17105 100644 --- a/configure.ac +++ b/configure.ac @@ -38,7 +38,6 @@ AC_SUBST(LIBS) AC_CHECK_HEADERS( stdlib.h \ string.h \ - stdio.h \ sys/types.h \ sys/socket.h \ netinet/in.h \ diff --git a/plugins/acpi/acpi-plugin.c b/plugins/acpi/acpi-plugin.c index add40a5..fc36113 100644 --- a/plugins/acpi/acpi-plugin.c +++ b/plugins/acpi/acpi-plugin.c @@ -21,10 +21,7 @@ #include #endif /* HAVE_CONFIG_H */ -#ifdef HAVE_STDIO_H #include -#endif /* HAVE_STDIO_H */ - #include #include #include "acpi-plugin.h" diff --git a/plugins/i2c-proc/i2c-proc-plugin.c b/plugins/i2c-proc/i2c-proc-plugin.c index 1ed81fe..4a63a8a 100644 --- a/plugins/i2c-proc/i2c-proc-plugin.c +++ b/plugins/i2c-proc/i2c-proc-plugin.c @@ -21,14 +21,8 @@ #include #endif /* HAVE_CONFIG_H */ -#ifdef HAVE_STDIO_H #include -#endif /* HAVE_STDIO_H */ - -#ifdef HAVE_LOCALE_H #include -#endif - #include #include #include "i2c-proc-plugin.h" diff --git a/plugins/i2c-sys/i2c-sys-plugin.c b/plugins/i2c-sys/i2c-sys-plugin.c index 72e2aee..411f98d 100644 --- a/plugins/i2c-sys/i2c-sys-plugin.c +++ b/plugins/i2c-sys/i2c-sys-plugin.c @@ -21,10 +21,7 @@ #include #endif /* HAVE_CONFIG_H */ -#ifdef HAVE_STDIO_H #include -#endif /* HAVE_STDIO_H */ - #include #include #include "i2c-sys-plugin.h" diff --git a/plugins/i8k/i8k-plugin.c b/plugins/i8k/i8k-plugin.c index b675b1d..e213d04 100644 --- a/plugins/i8k/i8k-plugin.c +++ b/plugins/i8k/i8k-plugin.c @@ -21,10 +21,7 @@ #include #endif /* HAVE_CONFIG_H */ -#ifdef HAVE_STDIO_H #include -#endif /* HAVE_STDIO_H */ - #include #include #include "i8k-plugin.h" diff --git a/plugins/ibm-acpi/ibm-acpi-plugin.c b/plugins/ibm-acpi/ibm-acpi-plugin.c index 285ff86..ae8f8ab 100644 --- a/plugins/ibm-acpi/ibm-acpi-plugin.c +++ b/plugins/ibm-acpi/ibm-acpi-plugin.c @@ -21,10 +21,7 @@ #include "config.h" #endif /* HAVE_CONFIG_H */ -#ifdef HAVE_STDIO_H #include -#endif /* HAVE_STDIO_H */ - #include #include #include "ibm-acpi-plugin.h" diff --git a/plugins/omnibook/omnibook-plugin.c b/plugins/omnibook/omnibook-plugin.c index 5d6ff91..7728110 100644 --- a/plugins/omnibook/omnibook-plugin.c +++ b/plugins/omnibook/omnibook-plugin.c @@ -21,10 +21,7 @@ #include "config.h" #endif /* HAVE_CONFIG_H */ -#ifdef HAVE_STDIO_H #include -#endif /* HAVE_STDIO_H */ - #include #include #include "omnibook-plugin.h" diff --git a/plugins/pmu-sys/pmu-sys-plugin.c b/plugins/pmu-sys/pmu-sys-plugin.c index 46f8f2b..6b50742 100644 --- a/plugins/pmu-sys/pmu-sys-plugin.c +++ b/plugins/pmu-sys/pmu-sys-plugin.c @@ -21,10 +21,7 @@ #include "config.h" #endif /* HAVE_CONFIG_H */ -#ifdef HAVE_STDIO_H #include -#endif /* HAVE_STDIO_H */ - #include #include #include "pmu-sys-plugin.h" diff --git a/plugins/smu-sys/smu-sys-plugin.c b/plugins/smu-sys/smu-sys-plugin.c index d9e530d..f2c93ea 100644 --- a/plugins/smu-sys/smu-sys-plugin.c +++ b/plugins/smu-sys/smu-sys-plugin.c @@ -21,10 +21,7 @@ #include "config.h" #endif /* HAVE_CONFIG_H */ -#ifdef HAVE_STDIO_H #include -#endif /* HAVE_STDIO_H */ - #include #include #include "smu-sys-plugin.h" -- cgit v1.2.1