From: Denys Vlasenko Date: Sat, 15 Jul 2017 11:53:41 +0000 (+0200) Subject: blkdiscard: provide our own BLK[SEC]DISCARD if necessary X-Git-Tag: 1_28_0~394 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8ea061eac3207e5901bbe6032530e64d053df837;p=oweals%2Fbusybox.git blkdiscard: provide our own BLK[SEC]DISCARD if necessary Signed-off-by: Denys Vlasenko --- diff --git a/util-linux/blkdiscard.c b/util-linux/blkdiscard.c index af0bc946d..85039c5d0 100644 --- a/util-linux/blkdiscard.c +++ b/util-linux/blkdiscard.c @@ -28,6 +28,13 @@ #include "libbb.h" #include +#ifndef BLKDISCARD +#define BLKDISCARD 0x1277 +#endif +#ifndef BLKSECDISCARD +#define BLKSECDISCARD 0x127d +#endif + int blkdiscard_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int blkdiscard_main(int argc UNUSED_PARAM, char **argv) {