From 3ff9fb450aa2a28221fcd863bf7913e84eeeb7ba Mon Sep 17 00:00:00 2001 From: listout Date: Fri, 5 May 2023 11:07:20 +0530 Subject: [PATCH] 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 Upstream commit: https://patch-diff.githubusercontent.com/raw/mate-desktop/mate-sensors-applet/pull/128.patch Bug: https://bugs.gentoo.org/896200 Signed-off-by: Brahmajit Das --- 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 \ --- 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" --- 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" --- 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" --- 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" --- 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" --- 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" --- 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" --- 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"