about summary refs log tree commit diff
path: root/sysdeps/generic/e_scalbl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/e_scalbl.c')
-rw-r--r--sysdeps/generic/e_scalbl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/generic/e_scalbl.c b/sysdeps/generic/e_scalbl.c
index fb2914dc5a..a34369c0b5 100644
--- a/sysdeps/generic/e_scalbl.c
+++ b/sysdeps/generic/e_scalbl.c
@@ -54,14 +54,18 @@ static char rcsid[] = "$NetBSD: $";
 	      return x;
 	    else if (!__finitel (x))
 	      {
+# ifdef FE_INVALID
 		feraiseexcept (FE_INVALID);
+# endif
 		return __nanl ("");
 	      }
 	    else       return x/(-fn);
 	}
 	if (__rintl(fn)!=fn)
 	  {
+# ifdef FE_INVALID
 	    feraiseexcept (FE_INVALID);
+# endif
 	    return __nanl ("");
 	  }
 	if ( fn > 65000.0) return __scalbnl(x, 65000);