summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src
diff options
context:
space:
mode:
authorKinglong Mee <mijinlong@open-fs.com>2017-04-25 08:28:25 -0400
committerJeff Darcy <jeff@pl.atyp.us>2017-05-09 15:20:25 +0000
commit4b03314e14c0395cc6c51692fd563f92f5b6f282 (patch)
treed0544a595b859481ecb5136ca2e55c59b588d7e1 /libglusterfs/src
parent0f552c509f5a12bda6b7b160a82a9322986655c6 (diff)
libglusterfs: include sys/time.h avoid compiling error on MacOSX
Change-Id: I3d30bacc3d5d085220dd85a3919207deef8bd1dd Signed-off-by: Kinglong Mee <mijinlong@open-fs.com> Reviewed-on: https://review.gluster.org/17114 Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Amar Tumballi <amarts@redhat.com> Reviewed-by: Prashanth Pai <ppai@redhat.com> Tested-by: Prashanth Pai <ppai@redhat.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'libglusterfs/src')
-rw-r--r--libglusterfs/src/syscall.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libglusterfs/src/syscall.h b/libglusterfs/src/syscall.h
index b847186e724..0cb61b66d36 100644
--- a/libglusterfs/src/syscall.h
+++ b/libglusterfs/src/syscall.h
@@ -15,6 +15,7 @@
#include <sys/uio.h>
#include <sys/statvfs.h>
#include <sys/stat.h>
+#include <sys/time.h>
/* GF follows the Linux XATTR definition, which differs in Darwin. */
#define GF_XATTR_CREATE 0x1 /* set value, fail if attr already exists */