From 6571d991af45b064bc650b10a36b87d3ecaed2c8 Mon Sep 17 00:00:00 2001
From: Tavian Barnes <tavianator@tavianator.com>
Date: Tue, 18 Oct 2022 12:11:54 -0400
Subject: util: Use ENOTSUP instead of ENOSYS for stubbed xconfstr()

---
 src/util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/util.c b/src/util.c
index 88cc859..b1a038a 100644
--- a/src/util.c
+++ b/src/util.c
@@ -417,7 +417,7 @@ size_t xwrite(int fd, const void *buf, size_t nbytes) {
 
 char *xconfstr(int name) {
 #if __ANDROID__
-	errno = ENOSYS;
+	errno = ENOTSUP;
 	return NULL;
 #else
 	size_t len = confstr(name, NULL, 0);
-- 
cgit v1.2.3