termux-packages/packages/ngspice/src-frontend-parser-complete.c.patch
2022-01-24 00:41:48 +09:00

16 lines
465 B
Diff

--- a/src/frontend/parser/complete.c
+++ b/src/frontend/parser/complete.c
@@ -213,10 +213,12 @@
lcomp = buf;
if (*buf == cp_til) { /* User name completion... */
buf++;
+#ifndef __ANDROID__
while ((pw = getpwent()) != NULL)
if (prefix(buf, pw->pw_name))
wl = wl_cons(copy(pw->pw_name), wl);
(void) endpwent();
+#endif
return (wl);
}
} else {