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.S12
1 files changed, 10 insertions, 2 deletions
diff --git a/sysdeps/sparc/sdiv.S b/sysdeps/sparc/sdiv.S
index 910cea528a..02ed2e973c 100644
--- a/sysdeps/sparc/sdiv.S
+++ b/sysdeps/sparc/sdiv.S
@@ -37,10 +37,18 @@
 
 
 
-#include "DEFS.h"
+#include "sysdep.h"
+#ifdef __linux__
+#include <asm/traps.h>
+#else
+#ifdef __svr4__
 #include <sys/trap.h>
+#else
+#include <machine/trap.h>
+#endif
+#endif
 
-FUNC(.div)
+ENTRY(.div)
 	! compute sign of result; if neither is negative, no problem
 	orcc	%o1, %o0, %g0	! either negative?
 	bge	2f			! no, go do the divide