If AT_EMPTY_PATH is not in one of the included files, go ahead and
define it. qemu won't compile on ubuntu for me without this.
(Note - alternatively we could #include <linux/fcntl.h> to pick
up the definitions there)
Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
#ifndef BTRFS_SUPER_MAGIC
#define BTRFS_SUPER_MAGIC 0x9123683E
#endif
+#ifndef AT_REMOVEDIR
+#define AT_REMOVEDIR 0x200
+#endif
+#ifndef AT_EMPTY_PATH
+#define AT_EMPTY_PATH 0x1000 /* Allow empty relative pathname */
+#endif
+#ifndef O_PATH
+#define O_PATH 010000000
+#endif
struct handle_data {
int mountfd;