Skip to content

Commit e75afb5

Browse files
committed
zfs_context: move loff_t declaration to sys/types.h
Sponsored-by: https://despairlabs.com/sponsor/ Signed-off-by: Rob Norris <[email protected]>
1 parent 788da60 commit e75afb5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/sys/zfs_context.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,6 @@ extern "C" {
130130

131131
#include <sys/zfs_context_os.h>
132132

133-
#ifdef __FreeBSD__
134-
typedef off_t loff_t;
135-
#endif
136-
137133
#endif /* _KERNEL || _STANDALONE */
138134

139135
#ifdef __cplusplus

lib/libspl/include/sys/types.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,8 @@ typedef int projid_t;
5050

5151
#include <sys/param.h> /* for NBBY */
5252

53+
#ifdef __FreeBSD__
54+
typedef off_t loff_t;
55+
#endif
56+
5357
#endif

0 commit comments

Comments
 (0)