From 3fcd72c2eed7af5bdae8d7f99f4382a25ad42077 Mon Sep 17 00:00:00 2001
From: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Fri, 26 Jun 2009 01:33:22 -0300
Subject: [PATCH 3/9] libjio: Add missing #include

It's incorrect to assume fcntl.h provides off_t and size_t, we need to
include sys/types.h for those.

Reported by Jonathan Yu.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
---
 libjio/compat.c |    1 +
 libjio/compat.h |    3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/libjio/compat.c b/libjio/compat.c
index 8c7645b..7ea1b2f 100644
--- a/libjio/compat.c
+++ b/libjio/compat.c
@@ -11,6 +11,7 @@
 #endif
 
 #include <fcntl.h>		/* sync_range_submit(), if possible */
+#include <sys/types.h>		/* off_t, size_t */
 #include "compat.h"
 
 
diff --git a/libjio/compat.h b/libjio/compat.h
index cf90798..517af33 100644
--- a/libjio/compat.h
+++ b/libjio/compat.h
@@ -4,6 +4,9 @@
 #ifndef _COMPAT_H
 #define _COMPAT_H
 
+#include <sys/types.h>		/* off_t, size_t */
+
+
 /* sync_file_range() is linux-specific, so we provide an internal similar API,
  * with a constant to be able to check for its presence; the implementation is
  * in compat.c */
-- 
1.6.2.2.646.gb214


