summaryrefslogtreecommitdiffstats
path: root/xlators/encryption/crypt
diff options
context:
space:
mode:
authorEmmanuel Dreyfus <manu@netbsd.org>2013-11-17 02:17:59 +0100
committerVijay Bellur <vbellur@redhat.com>2013-11-17 22:19:09 -0800
commiteb412da2375e6bbae5cc7a39db9e60fbbdd7aaa0 (patch)
tree8131d23bd0e012dc3a9705495de93cde31a74290 /xlators/encryption/crypt
parent432cecfbff496bfa9e71e8cbbed789458656c553 (diff)
NetBSD missing loff_t portability fix
define loff_t as off_t, is is already long long anyway. BUG: 764655 Change-Id: I99edda9b804475a8696c2d32ccf8eae152851e21 Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org> Reviewed-on: http://review.gluster.org/6286 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/encryption/crypt')
-rw-r--r--xlators/encryption/crypt/src/crypt.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/encryption/crypt/src/crypt.h b/xlators/encryption/crypt/src/crypt.h
index 01a8542ab8c..ff8eb571b40 100644
--- a/xlators/encryption/crypt/src/crypt.h
+++ b/xlators/encryption/crypt/src/crypt.h
@@ -38,6 +38,10 @@
#define MASTER_VOL_KEY_SIZE (32)
#define NMTD_VOL_KEY_SIZE (16)
+#ifdef __NetBSD__
+typedef off_t loff_t;
+#endif
+
struct crypt_key {
uint32_t len;
const char *label;