aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libtcc1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libtcc1.c b/lib/libtcc1.c
index 284965e..d8a5e71 100644
--- a/lib/libtcc1.c
+++ b/lib/libtcc1.c
@@ -630,8 +630,9 @@ long long __fixxfdi (long double a1)
#else
/* Avoid including stdlib.h because it is not easily available when
cross compiling */
+#include <stddef.h> /* size_t definition is needed for a x86_64-tcc to parse memset() */
extern void *malloc(unsigned long long);
-void *memset(void *s, int c, size_t n);
+extern void *memset(void *s, int c, size_t n);
extern void free(void*);
extern void abort(void);
#endif