redpill-lkm5/compat/string_compat.h
2022-12-16 14:34:30 +02:00

12 lines
296 B
C

#ifndef REDPILL_STRING_COMPAT_H
#define REDPILL_STRING_COMPAT_H
#include <linux/version.h> //KERNEL_VERSION()
#include <linux/types.h> //ssize_t
#if LINUX_VERSION_CODE <= KERNEL_VERSION(4,3,0)
ssize_t __must_check strscpy(char *, const char *, size_t);
#endif
#endif //REDPILL_STRING_COMPAT_H