pkgsrc-ng/devel/git-base/patches/patch-zz-minix-c
2017-01-10 20:06:19 +01:00

15 lines
399 B
Plaintext

--- progress.c.orig Sun Oct 4 00:40:24 2015
+++ progress.c Sun Oct 4 00:41:58 2015
@@ -75,7 +75,11 @@
static int is_foreground_fd(int fd)
{
int tpgrp = tcgetpgrp(fd);
+#if defined(__minix)
+ return tpgrp < 0 || tpgrp == getpid();
+#else
return tpgrp < 0 || tpgrp == getpgid(0);
+#endif /* defined(__minix) */
}
static int display(struct progress *progress, unsigned n, const char *done)