diff options
Diffstat (limited to 'lib/libspl/asm-x86_64/atomic.S')
-rw-r--r-- | lib/libspl/asm-x86_64/atomic.S | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libspl/asm-x86_64/atomic.S b/lib/libspl/asm-x86_64/atomic.S index 49c9b2ad1..50edfe878 100644 --- a/lib/libspl/asm-x86_64/atomic.S +++ b/lib/libspl/asm-x86_64/atomic.S @@ -28,8 +28,12 @@ .file "%M%" #define _ASM +#ifdef __linux__ #include <ia32/sys/asm_linkage.h> - +#elif __FreeBSD__ +#include <machine/asmacros.h> +#define SET_SIZE(x) +#endif ENTRY(atomic_inc_8) ALTENTRY(atomic_inc_uchar) lock |