diff options
author | Ron Yorston <rmy@pobox.com> | 2017-08-24 13:47:41 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2017-08-24 13:47:41 +0100 |
commit | 7a4491e1f8c77a9825bb70fa4367549746eb90c0 (patch) | |
tree | ca5797e00493cbf0e0de642df7977ef914614377 | |
parent | a7968f71ef743fd36434560b1d7642acf5227ee5 (diff) | |
download | busybox-w32-7a4491e1f8c77a9825bb70fa4367549746eb90c0.tar.gz busybox-w32-7a4491e1f8c77a9825bb70fa4367549746eb90c0.tar.bz2 busybox-w32-7a4491e1f8c77a9825bb70fa4367549746eb90c0.zip |
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.
-rw-r--r-- | libbb/xfuncs_printf.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
509 | bb_simple_perror_msg_and_die(errmsg); | 509 | bb_simple_perror_msg_and_die(errmsg); |
510 | } | 510 | } |
511 | 511 | ||
512 | #if !ENABLE_PLATFORM_MINGW32 | ||
512 | // selinux_or_die() - die if SELinux is disabled. | 513 | // selinux_or_die() - die if SELinux is disabled. |
513 | void FAST_FUNC selinux_or_die(void) | 514 | void FAST_FUNC selinux_or_die(void) |
514 | { | 515 | { |
@@ -691,3 +692,4 @@ void FAST_FUNC xvfork_parent_waits_and_exits(void) | |||
691 | } | 692 | } |
692 | /* Child continues */ | 693 | /* Child continues */ |
693 | } | 694 | } |
695 | #endif /* !ENABLE_PLATFORM_MINGW32 */ | ||