summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2016-01-28 00:38:23 -0500
committerRich Felker <dalias@aerifal.cx>2016-01-28 00:38:23 -0500
commit19df86cbb39f2429f7c7e20c99c606c38a5fd4e9 (patch)
tree61b5b2b547621f7439f5bf1a11d15be2c6f92a1d /src
parent378f8cb5222b63e4f8532c757ce54e4074567e1f (diff)
downloadmusl-19df86cbb39f2429f7c7e20c99c606c38a5fd4e9.tar.gz
musl-19df86cbb39f2429f7c7e20c99c606c38a5fd4e9.tar.bz2
musl-19df86cbb39f2429f7c7e20c99c606c38a5fd4e9.tar.xz
musl-19df86cbb39f2429f7c7e20c99c606c38a5fd4e9.zip
add errno setting to stub utmpxname function
Diffstat (limited to 'src')
-rw-r--r--src/legacy/utmpx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/legacy/utmpx.c b/src/legacy/utmpx.c
index 46ca4b8b..e2843c94 100644
--- a/src/legacy/utmpx.c
+++ b/src/legacy/utmpx.c
@@ -1,5 +1,6 @@
#include <utmpx.h>
#include <stddef.h>
+#include <errno.h>
#include "libc.h"
void endutxent(void)
@@ -36,6 +37,7 @@ void updwtmpx(const char *f, const struct utmpx *u)
int __utmpxname(const char *f)
{
+ errno = ENOTSUP;
return -1;
}