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