0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 14:13:36 +00:00
termux-packages/packages/gawk/no_pw_gecos.patch
Fredrik Fornwall 59f0d218a6 Initial push
2015-06-13 01:03:31 +02:00

19 lines
421 B
Diff

diff -u -r ../gawk-4.1.0/awklib/eg/lib/pwcat.c ./awklib/eg/lib/pwcat.c
--- ../gawk-4.1.0/awklib/eg/lib/pwcat.c 2013-05-09 15:05:20.000000000 +0200
+++ ./awklib/eg/lib/pwcat.c 2014-02-05 23:33:08.000000000 +0100
@@ -23,6 +23,7 @@
int
main(int argc, char **argv)
{
+#ifndef __ANDROID__
struct passwd *p;
while ((p = getpwent()) != NULL)
@@ -37,5 +38,6 @@
#endif
endpwent();
+#endif
return 0;
}