about summary refs log tree commit diff
path: root/sysdeps/stub/s_erfl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/stub/s_erfl.c')
-rw-r--r--sysdeps/stub/s_erfl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/stub/s_erfl.c b/sysdeps/stub/s_erfl.c
index efcf490fa7..7ae25d6252 100644
--- a/sysdeps/stub/s_erfl.c
+++ b/sysdeps/stub/s_erfl.c
@@ -1,10 +1,12 @@
 #include <math.h>
 #include <stdio.h>
+#include <errno.h>
 
 long double
 __erfl (long double x)
 {
   fputs ("__erfl not implemented\n", stderr);
+  __set_errno (ENOSYS);
   return 0.0;
 }
 weak_alias (__erfl, erfl)
@@ -15,6 +17,7 @@ long double
 __erfcl (long double x)
 {
   fputs ("__erfcl not implemented\n", stderr);
+  __set_errno (ENOSYS);
   return 0.0;
 }
 weak_alias (__erfcl, erfcl)