Ports/ninja: Update ninja to version 1.10.2

The sys-select-for-pselect patch was upstreamed in
b191404828.
:^)
This commit is contained in:
EWouters 2022-04-01 04:52:19 +02:00 committed by Brian Gianforcaro
parent ccc9550114
commit d6ce3a842c
Notes: sideshowbarker 2024-07-17 11:54:49 +09:00
3 changed files with 3 additions and 27 deletions

View file

@ -145,7 +145,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^
| [`neofetch`](neofetch/) | neofetch | 7.1.0 | https://github.com/dylanaraps/neofetch |
| [`nesalizer`](nesalizer/) | Nesalizer | | https://github.com/SerenityOS/nesalizer |
| [`nethack`](nethack/) | nethack | 3.6.6 | https://www.nethack.org/ |
| [`ninja`](ninja/) | Ninja | 1.8.2 | https://ninja-build.org/ |
| [`ninja`](ninja/) | Ninja | 1.10.2 | https://ninja-build.org/ |
| [`nippon`](nippon/) | Nippon Safes Inc. | 1.0 | https://www.scummvm.org/games/#games-nippon |
| [`npiet`](npiet/) | Piet language interpreter | 1.3f | https://www.bertnase.de/npiet/ |
| [`npth`](npth/) | New GNU Portable Threads Library | 1.6 | https://gnupg.org/software/npth/index.html |

View file

@ -1,7 +1,7 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=ninja
version=1.8.2
files="https://github.com/ninja-build/ninja/archive/v${version}.tar.gz ninja-v${version}.tar.gz 86b8700c3d0880c2b44c2ff67ce42774aaf8c28cbf57725cb881569288c1c6f4"
version=1.10.2
files="https://github.com/ninja-build/ninja/archive/v${version}.tar.gz ninja-v${version}.tar.gz ce35865411f0490368a8fc383f29071de6690cbadc27704734978221f25e2bed"
auth_type=sha256
build() {

View file

@ -1,24 +0,0 @@
diff --git a/src/subprocess-posix.cc b/src/subprocess-posix.cc
index 1de22c3..02b1b7e 100644
--- a/src/subprocess-posix.cc
+++ b/src/subprocess-posix.cc
@@ -17,13 +17,18 @@
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
-#include <poll.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <sys/wait.h>
#include <spawn.h>
+#if defined(USE_PPOLL)
+#include <poll.h>
+#else
+#include <sys/select.h>
+#endif
+
extern char** environ;
#include "util.h"