summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2023-04-10 19:36:23 +0100
committerPádraig Brady <P@draigBrady.com>2023-04-10 19:45:14 +0100
commitae4dace2ec591fafd501badbcf75d51d2260cfbe (patch)
tree6b7fbfa526ad8260b4c1b190eb07a60bf8e1e24c /src
parent09ded7049bfe11036452334b2128c65e208fd453 (diff)
downloadcoreutils-ae4dace2ec591fafd501badbcf75d51d2260cfbe.tar.gz
build: fix _Noreturn compilation failure
Fix a build failure seen on gcc 3.4 on Solaris 10 at least. * src/crctab.c: Ensure we include config.h for all compilation units. This is now required for new _Noreturn usage in gnulib for stdint.h. * src/cksum.c: Update generation code to ensure config.h included. * cfg.mk: Remove crctab.c exclusion from the config.h check.
Diffstat (limited to 'src')
-rw-r--r--src/cksum.c5
-rw-r--r--src/crctab.c1
2 files changed, 4 insertions, 2 deletions
diff --git a/src/cksum.c b/src/cksum.c
index 5e38fef3a..75d82e62c 100644
--- a/src/cksum.c
+++ b/src/cksum.c
@@ -116,8 +116,9 @@ main (void)
}
}
- printf ("#include <stdint.h>\n\n");
- printf ("uint_fast32_t const crctab[8][256] = {\n");
+ printf ("#include <config.h>\n");
+ printf ("#include <stdint.h>\n");
+ printf ("\nuint_fast32_t const crctab[8][256] = {\n");
for (int y = 0; y < 8; y++)
{
printf ("{\n 0x%08x", crctab[y][0]);
diff --git a/src/crctab.c b/src/crctab.c
index 20a1e4127..fdf2fdf87 100644
--- a/src/crctab.c
+++ b/src/crctab.c
@@ -1,3 +1,4 @@
+#include <config.h>
#include <stdint.h>
uint_fast32_t const crctab[8][256] = {