summaryrefslogtreecommitdiffstats
path: root/sys/cddl/compat/opensolaris
diff options
context:
space:
mode:
authorcem <cem@FreeBSD.org>2016-05-11 16:05:32 +0000
committercem <cem@FreeBSD.org>2016-05-11 16:05:32 +0000
commit64fd83451a916a4a1ad94e30959ed783d8fd71a2 (patch)
tree4403584b1bc2eeb693e44c853a77262a53c02876 /sys/cddl/compat/opensolaris
parent980da549c8eab5dd9d45311367f76355ee3e01a6 (diff)
downloadFreeBSD-src-64fd83451a916a4a1ad94e30959ed783d8fd71a2.zip
FreeBSD-src-64fd83451a916a4a1ad94e30959ed783d8fd71a2.tar.gz
compat/opensolaris: Don't redefined off64_t if already defined
A follow-up to r299456. Reported by: gjb Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'sys/cddl/compat/opensolaris')
-rw-r--r--sys/cddl/compat/opensolaris/sys/types.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/cddl/compat/opensolaris/sys/types.h b/sys/cddl/compat/opensolaris/sys/types.h
index 4d79b5e..f6612a2 100644
--- a/sys/cddl/compat/opensolaris/sys/types.h
+++ b/sys/cddl/compat/opensolaris/sys/types.h
@@ -52,7 +52,10 @@ typedef u_short ushort_t;
typedef u_long ulong_t;
typedef long long longlong_t;
typedef unsigned long long u_longlong_t;
+#ifndef _OFF64_T_DECLARED
+#define _OFF64_T_DECLARED
typedef off_t off64_t;
+#endif
typedef id_t taskid_t;
typedef id_t projid_t;
typedef id_t poolid_t;
OpenPOWER on IntegriCloud