Re: 3.4.2 fails to compile on non-x86 architectures
Jason L Tibbitts III <[email protected]>
| Newsgroups | gmane.comp.archivers.amanda.devel |
|---|---|
| Message-ID | <[email protected]> |
A build (including make check) does succeed with the following patch.
However, I have no easy way to test this so if the test suite doesn't
exercise this code path then I've no idea it the result is functional.
- J<
diff --git a/common-src/amutil.c b/common-src/amutil.c
index b46ad77..4b356d6 100644
--- a/common-src/amutil.c
+++ b/common-src/amutil.c
@@ -1904,6 +1904,9 @@ static int get_sse42(void)
#endif
return (ecx >> 20) & 1;
}
+#else /* if defined __x86_64__ || defined __i386__ ... */
+static int get_sse42(void) {
+}
#endif
static uint32_t crc_table[16][256];