Config: select PLATFORM_LINUX if using sendfile()
authorBartosz Golaszewski <bartekgola@gmail.com>
Wed, 10 Dec 2014 12:34:42 +0000 (13:34 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 10 Dec 2014 12:46:53 +0000 (13:46 +0100)
Man entry for sendfile:

  Not specified in POSIX.1-2001, or other standards.

  Other UNIX systems implement sendfile() with different  semantics  and
  prototypes. It should not be used in portable programs.

Select PLATFORM_LINUX if enabling FEATURE_USE_SENDFILE.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Config.in

index 285fe0a19ada2d453a7cd4bf94a41fa7aeb0fea0..07b4bf36b18426d7e7841c618a2b1d1f236e6494 100644 (file)
--- a/Config.in
+++ b/Config.in
@@ -267,6 +267,7 @@ config PAM
 config FEATURE_USE_SENDFILE
        bool "Use sendfile system call"
        default y
+       select PLATFORM_LINUX
        help
          When enabled, busybox will use the kernel sendfile() function
          instead of read/write loops to copy data between file descriptors