about summary refs log tree commit diff
path: root/sysdeps/stub/s_expm1l.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/stub/s_expm1l.c')
-rw-r--r--sysdeps/stub/s_expm1l.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/stub/s_expm1l.c b/sysdeps/stub/s_expm1l.c
index fb8bda5eca..38798812ff 100644
--- a/sysdeps/stub/s_expm1l.c
+++ b/sysdeps/stub/s_expm1l.c
@@ -1,10 +1,12 @@
 #include <math.h>
 #include <stdio.h>
+#include <errno.h>
 
 long double
 __expm1l (long double x)
 {
   fputs ("__expm1l not implemented\n", stderr);
+  __set_errno (ENOSYS);
   return 0.0;
 }
 weak_alias (__expm1l, expm1l)