dorimanx / exfat-nofuse

Android ARM Linux non-fuse read/write kernel driver for exFat and VFat Android file systems
GNU General Public License v2.0
707 stars 326 forks source link

exfat: use timespec64 instead of timespec for kernel 3.17+ #143

Closed ariasuni closed 5 years ago

ariasuni commented 5 years ago

Fix compilation for Linux 4.20+.

jamesan commented 5 years ago

Duplicate of #137.

Also, this PR diverges from existing code which implements all kernel version-specific preprocessor if-else directives and version-specific code directly in the code files (i.e. the .c file) -- that is, it doesn't use a typedef that conditionally refers to the correct time interface in the header file and then use this new version-invariant type in the code file.

ariasuni commented 5 years ago

Makes sense.