]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Add <linux/types.h> header to lxcbtrfs.h 734/head
authorChristian Brauner <christian.brauner@mailbox.org>
Mon, 21 Dec 2015 10:38:30 +0000 (11:38 +0100)
committerChristian Brauner <christian.brauner@mailbox.org>
Mon, 28 Dec 2015 08:50:04 +0000 (09:50 +0100)
Using

#include <sys/types.h>

is not sufficient to guarantee that __le64 and other types are defined.

Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
src/lxc/bdev/lxcbtrfs.h

index 40e45210b5e767e9883cb45b7bb6aa7cb1b2cff6..e0adb7a3d5f037f1c6b1251f56378633601f4c76 100644 (file)
@@ -25,9 +25,9 @@
 #define __LXC_BTRFS_H
 
 #define _GNU_SOURCE
+#include <linux/types.h> /* __le64, __l32 ... */
 #include <stdbool.h>
 #include <stdint.h>
-#include <sys/prctl.h>
 
 typedef uint8_t u8;
 typedef uint16_t u16;