diff options
Diffstat (limited to 'sysdeps/sparc/rem.S')
-rw-r--r-- | sysdeps/sparc/rem.S | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sysdeps/sparc/rem.S b/sysdeps/sparc/rem.S index 05916f0b06..d50f1af630 100644 --- a/sysdeps/sparc/rem.S +++ b/sysdeps/sparc/rem.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(.rem) +ENTRY(.rem) ! compute sign of result; if neither is negative, no problem orcc %o1, %o0, %g0 ! either negative? bge 2f ! no, go do the divide |