From 7a4491e1f8c77a9825bb70fa4367549746eb90c0 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Thu, 24 Aug 2017 13:47:41 +0100 Subject: libbb: don't compile various Linux-specific functions xfuncs_printf.c includes a number of Linux-specific functions. They handle things like SELinux, ioctls, devices and forking. Nothing in busybox-w32 uses them, so don't compile them. --- libbb/xfuncs_printf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libbb/xfuncs_printf.c b/libbb/xfuncs_printf.c index f569b0263..b6ccd82b2 100644 --- a/libbb/xfuncs_printf.c +++ b/libbb/xfuncs_printf.c @@ -509,6 +509,7 @@ void FAST_FUNC xfstat(int fd, struct stat *stat_buf, const char *errmsg) bb_simple_perror_msg_and_die(errmsg); } +#if !ENABLE_PLATFORM_MINGW32 // selinux_or_die() - die if SELinux is disabled. void FAST_FUNC selinux_or_die(void) { @@ -691,3 +692,4 @@ void FAST_FUNC xvfork_parent_waits_and_exits(void) } /* Child continues */ } +#endif /* !ENABLE_PLATFORM_MINGW32 */ -- cgit v1.2.3-55-g6feb