Update fff.h - use linux/string.h instead of string.h, when it is compile for kernel (module)

This commit is contained in:
stubbfel
2018-01-24 00:20:22 +01:00
parent 82eab51659
commit 719a9bb5ab

5
fff.h
View File

@@ -27,7 +27,12 @@ SOFTWARE.
#define FAKE_FUNCTIONS
#include <stdarg.h>
#ifndef __KERNEL__
#include <string.h> /* For memset and memcpy */
#else
#include <linux/string.h> /* For memset and memcpy */
#endif
#define FFF_MAX_ARGS (20u)
#ifndef FFF_ARG_HISTORY_LEN