Fix building with Linux 2.6.37
authorMartin Pitt <martin.pitt@ubuntu.com>
Sat, 6 Nov 2010 16:42:09 +0000 (12:42 -0400)
committerMartin Pitt <martin.pitt@ubuntu.com>
Sat, 6 Nov 2010 16:42:09 +0000 (12:42 -0400)
<linux/fs.h> uses uint64_t without including it itself. Arguably a kernel bug,
but it costs us nothing to defend against it.

src/device.c
src/helpers/job-drive-benchmark.c
src/helpers/job-shared.h
src/helpers/partutil.c

index 91c6cd1..c4a83ff 100644 (file)
@@ -36,6 +36,7 @@
 #include <fcntl.h>
 #include <pwd.h>
 #include <grp.h>
+#include <stdint.h>
 #include <linux/fs.h>
 #include <sys/ioctl.h>
 #include <linux/cdrom.h>
index b0fbf13..1181c65 100644 (file)
@@ -28,6 +28,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/ioctl.h>
+#include <stdint.h>
 #include <linux/fs.h>
 #include <fcntl.h>
 #include <string.h>
index cf78474..4649b45 100644 (file)
@@ -30,6 +30,7 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <sys/ioctl.h>
+#include <stdint.h>
 #include <linux/fs.h>
 
 #include <glib.h>
index ecec84c..3bd64b8 100644 (file)
@@ -34,6 +34,7 @@
 #include <errno.h>
 #include <sys/ioctl.h>
 #include <ctype.h>
+#include <stdint.h>
 #include <linux/fs.h>
 
 #include <linux/hdreg.h>