From 19df86cbb39f2429f7c7e20c99c606c38a5fd4e9 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 28 Jan 2016 00:38:23 -0500 Subject: [PATCH] add errno setting to stub utmpxname function --- src/legacy/utmpx.c | 2 ++ 1 file changed, 2 insertions(+) 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 #include +#include #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; } -- 2.25.1