]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: don’t include config.h twice
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 15 Sep 2022 05:30:31 +0000 (00:30 -0500)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 15 Sep 2022 05:44:01 +0000 (00:44 -0500)
* 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.

gl/lib/fadvise.h
gl/lib/smack.h
src/blake2/blake2-impl.h

index 05d1a5bf23ab527c153c91c1407c82f33d346a29..437788d7db087cb89ee97dcbf965516bef8ef93f 100644 (file)
@@ -14,7 +14,6 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
 #include <stdio.h>
 #include <fcntl.h>
 #include <sys/types.h>
index bcebf08f0e1f2721570ed61b69ef88fc4495f199..e5c8cc0b057acbc787324bffedacad05caa94b59 100644 (file)
@@ -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 <config.h>
-
 #ifdef HAVE_SMACK
 # include <sys/smack.h>
 #else
index 7ecc8a615a03c9135db5bc46ff9ed85e24c6eaed..02a1b8fecae98becaff2cd59edfb2df528c6c610 100644 (file)
@@ -15,9 +15,6 @@
 #ifndef BLAKE2_IMPL_H
 #define BLAKE2_IMPL_H
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
 #ifndef WORDS_BIGENDIAN
 # define NATIVE_LITTLE_ENDIAN 1
 #endif