PKGBUILD: archlinux: fix build by applying a patch (4c4aa5534c34) on 0.2.9 package.
[xonotic/gmqcc.git] / distro / archlinux / release / build_fix.patch
1 diff --git a/test.c b/test.c
2 index 0af7477..7722af2 100644
3 --- a/test.c
4 +++ b/test.c
5 @@ -116,9 +116,9 @@ FILE ** task_popen(const char *command, const char *mode) {
6          close(errhandle[0]);
7  
8          /* see piping documentation for this sillyness :P */
9 -        close(0), dup(inhandle [0]);
10 -        close(1), dup(outhandle[1]);
11 -        close(2), dup(errhandle[1]);
12 +        close(0); (void)!dup(inhandle [0]);
13 +        close(1); (void)!dup(outhandle[1]);
14 +        close(2); (void)!dup(errhandle[1]);
15  
16          execvp(*argv, argv);
17          exit(EXIT_FAILURE);
18