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