From: Stéphane Graber Date: Fri, 16 Aug 2013 10:19:44 +0000 (+0200) Subject: Define BLKGETSIZE64 and LO_FLAGS_AUTOCLEAR X-Git-Tag: lxc-1.0.0.alpha1~1^2~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bff13ba210ed61f756fc82adce1921f84b43ffe0;p=thirdparty%2Flxc.git Define BLKGETSIZE64 and LO_FLAGS_AUTOCLEAR Those two aren't always around (specifically on bionic), so add some defines in case they aren't already defined. Signed-off-by: Stéphane Graber Acked-by: Serge E. Hallyn --- diff --git a/src/lxc/bdev.c b/src/lxc/bdev.c index a297cce9b..7cb4d6c1f 100644 --- a/src/lxc/bdev.c +++ b/src/lxc/bdev.c @@ -48,6 +48,14 @@ #include "parse.h" #include "utils.h" +#ifndef BLKGETSIZE64 +#define BLKGETSIZE64 _IOR(0x12,114,size_t) +#endif + +#ifndef LO_FLAGS_AUTOCLEAR +#define LO_FLAGS_AUTOCLEAR 4 +#endif + lxc_log_define(bdev, lxc); static int do_rsync(const char *src, const char *dest)