blob: 24f69d8314f4151cb7959be4e000424f9834c638 (
plain) (
blame)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
 | --- include/platform.h.orig	2015-01-27 08:49:43 UTC
+++ include/platform.h
@@ -544,4 +544,10 @@ extern int vasprintf(char **string_ptr, 
 extern ssize_t getline(char **lineptr, size_t *n, FILE *stream) FAST_FUNC;
 #endif
 
+#include <string.h>
+static ALWAYS_INLINE void *mempcpy(void *dest, const void *src, size_t len)
+{
+	return memcpy(dest, src, len) + len;
+}
+
 #endif
 |