mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 19:19:32 +03:00
52479ecf58
Don't include the compatibility code in linux/*_compat.h in the public header sys/types.h. This causes problems when an external code base includes the ZFS headers and has its own conflicting compatibility code. Lustre, in particular, defined SHRINK_STOP for compatibility with pre-3.12 kernels in a way that conflicted with the SPL's definition. Because Lustre ZFS OSD includes ZFS headers it fails to build due to a '"SHRINK_STOP" redefined' compiler warning. To avoid such conflicts only include the compat headers from .c files or private headers. Also, for consistency, include sys/*.h before linux/*.h then sort by header name. Signed-off-by: Ned Bass <bass6@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #411 |
||
---|---|---|
.. | ||
bitops_compat.h | ||
compiler_compat.h | ||
delay_compat.h | ||
file_compat.h | ||
list_compat.h | ||
Makefile.am | ||
math64_compat.h | ||
mm_compat.h | ||
module_compat.h | ||
proc_compat.h | ||
rwsem_compat.h | ||
wait_compat.h | ||
zlib_compat.h |