diff options
author | Matthew Macy <[email protected]> | 2019-11-30 15:42:00 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-11-30 15:42:00 -0800 |
commit | c54687cd2360d01c8237058f16293572b2a2eedb (patch) | |
tree | 2c3b2e628df066b16c6d4b03dc0952dd43b676dc /lib/libspl/asm-x86_64/atomic.S | |
parent | f348c78f97527e7a49859fa7e7ee29dd6b37dfb2 (diff) |
Make asm-x86_64/atomic.S build on FreeBSD
Include the required headers for FreeBSD.
Reviewed-by: Jorgen Lundman <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Matt Macy <[email protected]>
Closes #9634
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 |