]>
git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - include/xfs.h
1 // SPDX-License-Identifier: LGPL-2.1
3 * Copyright (c) 2005 Silicon Graphics, Inc. All Rights Reserved.
10 #elif defined(__FreeBSD__)
11 #include <xfs/freebsd.h>
12 #elif defined(__FreeBSD_kernel__)
13 #include <xfs/gnukfreebsd.h>
14 #elif defined(__APPLE__)
15 #include <xfs/darwin.h>
17 # error unknown platform... have fun porting!
21 * make sure that any user of the xfs headers has a 64bit off_t type
23 extern int xfs_assert_largefile
[sizeof(off_t
)-8];
26 * sparse kernel source annotations
33 * kernel struct packing shortcut
36 #define __packed __attribute__((packed))
40 #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
43 #include <xfs/xfs_types.h>
44 #include <xfs/xfs_fs.h>
46 #endif /* __XFS_H__ */