# HG changeset patch
# User SATOH Fumiyasu <fumiyas@osstech.co.jp>
# Date 1335512850 -32400
# Node ID ce6a476f16c5e4c4fb14a8ff916880e6b2a46fbc
# Parent  e8b80e0767ac0d3f5e98d9a464344043488fff0c
Fix the build failure on AIX

$ make
...
In file included from stats-connection.c:9:
stats-plugin.h:14: error: field 'user_cpu' has incomplete type
stats-plugin.h:14: error: field 'sys_cpu' has incomplete type

diff -r e8b80e0767ac -r ce6a476f16c5 src/lib-storage/index/index-search-private.h
--- a/src/lib-storage/index/index-search-private.h	Thu Apr 26 00:26:58 2012 +0300
+++ b/src/lib-storage/index/index-search-private.h	Fri Apr 27 16:47:30 2012 +0900
@@ -3,6 +3,8 @@
 
 #include "mail-storage-private.h"
 
+#include <sys/time.h>
+
 struct index_search_context {
         struct mail_search_context mail_ctx;
 	struct mail_index_view *view;
diff -r e8b80e0767ac -r ce6a476f16c5 src/plugins/stats/stats-plugin.h
--- a/src/plugins/stats/stats-plugin.h	Thu Apr 26 00:26:58 2012 +0300
+++ b/src/plugins/stats/stats-plugin.h	Fri Apr 27 16:47:30 2012 +0900
@@ -6,6 +6,8 @@
 #include "mail-user.h"
 #include "mail-storage-private.h"
 
+#include <sys/time.h>
+
 #define STATS_USER_CONTEXT(obj) \
 	MODULE_CONTEXT(obj, stats_user_module)
 
