about summary refs log tree commit diff
path: root/sysdeps/sparc/udiv.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/sparc/udiv.S')
-rw-r--r--sysdeps/sparc/udiv.S12
1 files changed, 10 insertions, 2 deletions
diff --git a/sysdeps/sparc/udiv.S b/sysdeps/sparc/udiv.S
index 49df8ab2a7..4a7d1526b0 100644
--- a/sysdeps/sparc/udiv.S
+++ b/sysdeps/sparc/udiv.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(.udiv)
+ENTRY(.udiv)
 
 	! Ready to divide.  Compute size of quotient; scale comparand.
 	orcc	%o1, %g0, %o5