tools: binstall can use posix_spawn() instead of vfork()

This commit is contained in:
lukem 2023-07-20 16:21:23 +00:00
parent 307596b164
commit 4815827f69
3 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: configure.ac,v 1.106 2023/07/20 15:15:23 lukem Exp $
# $NetBSD: configure.ac,v 1.107 2023/07/20 16:21:23 lukem Exp $
#
# Autoconf definition file for libnbcompat.
#
@ -228,7 +228,7 @@ AC_CHECK_FUNCS(atoll asprintf asnprintf basename devname dirfd dirname \
dprintf esetfunc fgetln flock fpurge __fpurge futimes getline \
getopt getopt_long group_from_gid gid_from_group \
heapsort isblank issetugid lchflags lchmod lchown lutimes mkstemp \
mkdtemp poll pread putc_unlocked pwcache_userdb pwcache_groupdb \
mkdtemp poll posix_spawn pread putc_unlocked pwcache_userdb pwcache_groupdb \
pwrite raise_default_signal random reallocarr reallocarray setenv \
setgroupent setprogname setpassent \
snprintb_m snprintf strlcat strlcpy strmode \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.30 2023/06/03 09:09:19 lukem Exp $
# $NetBSD: Makefile,v 1.31 2023/07/20 16:21:23 lukem Exp $
# @(#)Makefile 8.1 (Berkeley) 6/6/93
.include <bsd.own.mk>
@ -11,7 +11,6 @@ MAN= install.1
CPPFLAGS+= -I${NETBSDSRCDIR}/usr.sbin/mtree
.if (${HOSTPROG:U} == "")
CPPFLAGS+= -DHAVE_POSIX_SPAWN
DPADD+= ${LIBUTIL}
LDADD+= -lutil
.endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: xinstall.c,v 1.126 2020/10/30 20:05:00 rillig Exp $ */
/* $NetBSD: xinstall.c,v 1.127 2023/07/20 16:21:23 lukem Exp $ */
/*
* Copyright (c) 1987, 1993
@ -64,6 +64,7 @@
#include "nbtool_config.h"
#else
#define HAVE_FUTIMES 1
#define HAVE_POSIX_SPAWN 1
#define HAVE_STRUCT_STAT_ST_FLAGS 1
#endif
@ -77,7 +78,7 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 1993\
#if 0
static char sccsid[] = "@(#)xinstall.c 8.1 (Berkeley) 7/21/93";
#else
__RCSID("$NetBSD: xinstall.c,v 1.126 2020/10/30 20:05:00 rillig Exp $");
__RCSID("$NetBSD: xinstall.c,v 1.127 2023/07/20 16:21:23 lukem Exp $");
#endif
#endif /* not lint */