about summary refs log tree commit diff
path: root/sysdeps/sparc/sdiv.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/sparc/sdiv.S')
-rw-r--r--sysdeps/sparc/sdiv.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/sparc/sdiv.S b/sysdeps/sparc/sdiv.S
index dadbb36b0a..7397e5edb8 100644
--- a/sysdeps/sparc/sdiv.S
+++ b/sysdeps/sparc/sdiv.S
@@ -38,11 +38,15 @@
 
 
 #include "DEFS.h"
+#ifdef __linux__
+#include <asm/traps.h>
+#else
 #ifdef __svr4__
 #include <sys/trap.h>
 #else
 #include <machine/trap.h>
 #endif
+#endif
 
 FUNC(.div)
 	! compute sign of result; if neither is negative, no problem