mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
openntpd: unbreak musl build: WAIT_ANY -> -1 in waitpid(2).
This commit is contained in:
parent
f312b954e0
commit
a0918c133f
2 changed files with 12 additions and 1 deletions
11
srcpkgs/openntpd/patches/portability.patch
Normal file
11
srcpkgs/openntpd/patches/portability.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- src/constraint.c.orig 2015-05-09 18:58:56.300462567 +0200
|
||||||
|
+++ src/constraint.c 2015-05-09 18:59:02.979453950 +0200
|
||||||
|
@@ -257,7 +257,7 @@ constraint_check_child(void)
|
||||||
|
pid_t pid;
|
||||||
|
|
||||||
|
do {
|
||||||
|
- pid = waitpid(WAIT_ANY, &status, WNOHANG);
|
||||||
|
+ pid = waitpid(-1, &status, WNOHANG);
|
||||||
|
if (pid <= 0)
|
||||||
|
continue;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'openntpd'
|
# Template file for 'openntpd'
|
||||||
pkgname=openntpd
|
pkgname=openntpd
|
||||||
version=5.7p4
|
version=5.7p4
|
||||||
revision=2
|
revision=3
|
||||||
build_pie=yes
|
build_pie=yes
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-privsep-user=$pkgname --with-cacert=/etc/ssl/certs.pem"
|
configure_args="--with-privsep-user=$pkgname --with-cacert=/etc/ssl/certs.pem"
|
||||||
|
|
Loading…
Add table
Reference in a new issue