summaryrefslogtreecommitdiffstats
path: root/lib/libspl/asm-i386/atomic.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libspl/asm-i386/atomic.S')
-rw-r--r--lib/libspl/asm-i386/atomic.S6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libspl/asm-i386/atomic.S b/lib/libspl/asm-i386/atomic.S
index 3086d5543..7a574b0d1 100644
--- a/lib/libspl/asm-i386/atomic.S
+++ b/lib/libspl/asm-i386/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)
movl 4(%esp), %eax