summary refs log tree commit diff
path: root/sysdeps/sparc/rem.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/sparc/rem.S')
-rw-r--r--sysdeps/sparc/rem.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/sparc/rem.S b/sysdeps/sparc/rem.S
index 17662f7fd4..565fc0f678 100644
--- a/sysdeps/sparc/rem.S
+++ b/sysdeps/sparc/rem.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(.rem)
 	! compute sign of result; if neither is negative, no problem