From 719a9bb5ab4c059b52038b9576632a6e51923fba Mon Sep 17 00:00:00 2001 From: stubbfel Date: Wed, 24 Jan 2018 00:20:22 +0100 Subject: [PATCH] Update fff.h - use linux/string.h instead of string.h, when it is compile for kernel (module) --- fff.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fff.h b/fff.h index 28d6b79..7ab1a2a 100644 --- a/fff.h +++ b/fff.h @@ -27,7 +27,12 @@ SOFTWARE. #define FAKE_FUNCTIONS #include + +#ifndef __KERNEL__ #include /* For memset and memcpy */ +#else +#include /* For memset and memcpy */ +#endif #define FFF_MAX_ARGS (20u) #ifndef FFF_ARG_HISTORY_LEN