about summary refs log tree commit diff
path: root/src/legacy
diff options
context:
space:
mode:
Diffstat (limited to 'src/legacy')
-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;
 }