From ae0f1422bfbe49bd4ac824fe6ae56069a171246f Mon Sep 17 00:00:00 2001 From: Marian Beermann Date: Sat, 14 Jan 2017 15:24:03 +0100 Subject: [PATCH] crc: openbsd has no Intel intrinsics --- src/borg/_crc32/crc32.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/borg/_crc32/crc32.c b/src/borg/_crc32/crc32.c index 9d290f3cd..239592592 100644 --- a/src/borg/_crc32/crc32.c +++ b/src/borg/_crc32/crc32.c @@ -8,6 +8,11 @@ * target attributes or the options stack. So we disable this faster code path for clang. */ #ifndef __clang__ +/* + * While OpenBSD uses GCC, they don't have Intel intrinsics, so we can't compile this code + * on OpenBSD. + */ +#ifndef __OpenBSD__ #if __x86_64__ /* * Because we don't want a configure script we need compiler-dependent pre-defined macros for detecting this, @@ -59,6 +64,7 @@ #endif #endif /* if __x86_64__ */ +#endif /* ifndef __OpenBSD__ */ #endif /* ifndef __clang__ */ #endif /* ifdef __GNUC__ */