Skip to content

Commit eceb5b3

Browse files
robnbehlendorf
authored andcommitted
libspl: move loff_t declaration from zfs_context.h
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes #17861
1 parent 5305d0f commit eceb5b3

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
@@ -133,10 +133,6 @@ extern "C" {
133133

134134
#include <sys/zfs_context_os.h>
135135

136-
#ifdef __FreeBSD__
137-
typedef off_t loff_t;
138-
#endif
139-
140136
#endif /* _KERNEL || _STANDALONE */
141137

142138
#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)