about summary refs log tree commit diff
path: root/math/fesetenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/fesetenv.c')
-rw-r--r--math/fesetenv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/math/fesetenv.c b/math/fesetenv.c
index acfe5f4889..9bf42c0f6c 100644
--- a/math/fesetenv.c
+++ b/math/fesetenv.c
@@ -23,6 +23,10 @@
 int
 __fesetenv (const fenv_t *envp)
 {
+#if defined FE_NOMASK_ENV && FE_ALL_EXCEPT != 0
+  if (envp == FE_NOMASK_ENV)
+    return 1;
+#endif
   /* Nothing to do.  */
   return 0;
 }