From: Paul Eggert Date: Thu, 15 Sep 2022 05:30:31 +0000 (-0500) Subject: maint: don’t include config.h twice X-Git-Tag: v9.2~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b29ef22135c57a032c3c8d65b345a8f16e7b2b26;p=thirdparty%2Fcoreutils.git maint: don’t include config.h twice * gl/lib/fadvise.h, gl/lib/smack.h, src/blake2/blake2-impl.h: Do not include config.h from a .h file. config.h is supposed to be included once, at the start of compilation and before any other file. --- diff --git a/gl/lib/fadvise.h b/gl/lib/fadvise.h index 05d1a5bf23..437788d7db 100644 --- a/gl/lib/fadvise.h +++ b/gl/lib/fadvise.h @@ -14,7 +14,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include #include #include #include diff --git a/gl/lib/smack.h b/gl/lib/smack.h index bcebf08f0e..e5c8cc0b05 100644 --- a/gl/lib/smack.h +++ b/gl/lib/smack.h @@ -17,8 +17,6 @@ /* Here we replace or wrap the most common smack functions used by coreutils. Others will need to be protected by HAVE_SMACK. */ -#include - #ifdef HAVE_SMACK # include #else diff --git a/src/blake2/blake2-impl.h b/src/blake2/blake2-impl.h index 7ecc8a615a..02a1b8feca 100644 --- a/src/blake2/blake2-impl.h +++ b/src/blake2/blake2-impl.h @@ -15,9 +15,6 @@ #ifndef BLAKE2_IMPL_H #define BLAKE2_IMPL_H -#ifdef HAVE_CONFIG_H -# include -#endif #ifndef WORDS_BIGENDIAN # define NATIVE_LITTLE_ENDIAN 1 #endif