termux-packages/packages/ngspice/src-frontend-parser-complete.c.patch

16 lines
465 B
Diff
Raw Normal View History

2022-01-20 18:23:39 +01:00
--- 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 {