]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Define BLKGETSIZE64 and LO_FLAGS_AUTOCLEAR
authorStéphane Graber <stgraber@ubuntu.com>
Fri, 16 Aug 2013 10:19:44 +0000 (12:19 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 19 Aug 2013 12:33:02 +0000 (14:33 +0200)
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 <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/bdev.c

index a297cce9ba174a1942b8631760684fed541bbfe5..7cb4d6c1fb9fc02b794dc3bb8049b660eab21697 100644 (file)
 #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)