Although in posix, imaxdiv() isn't available on Debian/alpha, causing dash to fail to build. So don't use imaxdiv(), but / and % operators.
http://bugs.debian.org/456398 Signed-off-by: Gerrit Pape <[EMAIL PROTECTED]> --- src/arith_yacc.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/src/arith_yacc.c b/src/arith_yacc.c index e473594..b09731f 100644 --- a/src/arith_yacc.c +++ b/src/arith_yacc.c @@ -88,16 +88,13 @@ static inline int higher_prec(int op1, int op2) static intmax_t do_binop(int op, intmax_t a, intmax_t b) { - imaxdiv_t div; - switch (op) { default: case ARITH_REM: case ARITH_DIV: if (!b) yyerror("division by zero"); - div = imaxdiv(a, b); - return op == ARITH_REM ? div.rem : div.quot; + return op == ARITH_REM ? a % b : a / b; case ARITH_MUL: return a * b; case ARITH_ADD: -- 1.5.3.7 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]