diff --git a/include/metalsvm/config.h.example b/include/metalsvm/config.h.example index f69cb13f..514dfaff 100644 --- a/include/metalsvm/config.h.example +++ b/include/metalsvm/config.h.example @@ -57,6 +57,12 @@ extern "C" { #define CONFIG_MULTIBOOT //#define CONFIG_ROCKCREEK +#ifdef CONFIG_ROCKCREEK +#ifndef __SIZEOF_POINTER__ +#define __SIZEOF_POINTER__ 4 +#endif +#endif + // RCCE specific flags #define SCC #define COPPERRIDGE diff --git a/libkern/divdi3.c b/libkern/divdi3.c index 011935d0..b4bb2a8e 100644 --- a/libkern/divdi3.c +++ b/libkern/divdi3.c @@ -31,6 +31,8 @@ * SUCH DAMAGE. */ +#include + /* * The code has been taken from FreeBSD (sys/libkern/divdi3.c) and is therefore * BSD-licensed. Unnecessary functions have been removed and all typedefs required diff --git a/libkern/lshrdi3.c b/libkern/lshrdi3.c index 4299455b..49d9b5fd 100644 --- a/libkern/lshrdi3.c +++ b/libkern/lshrdi3.c @@ -31,6 +31,8 @@ * SUCH DAMAGE. */ +#include + #if __SIZEOF_POINTER__ == 4 /* diff --git a/libkern/moddi3.c b/libkern/moddi3.c index 9724183d..9fc1f66c 100644 --- a/libkern/moddi3.c +++ b/libkern/moddi3.c @@ -31,6 +31,8 @@ * SUCH DAMAGE. */ +#include + #if __SIZEOF_POINTER__ == 4 /* diff --git a/libkern/qdivrem.c b/libkern/qdivrem.c index a3eda77e..1c2ff18f 100644 --- a/libkern/qdivrem.c +++ b/libkern/qdivrem.c @@ -37,6 +37,8 @@ * have been added in quad.h. */ +#include + #if __SIZEOF_POINTER__ == 4 /* diff --git a/libkern/ucmpdi2.c b/libkern/ucmpdi2.c index 1577fee4..9e5f4940 100644 --- a/libkern/ucmpdi2.c +++ b/libkern/ucmpdi2.c @@ -31,6 +31,8 @@ * SUCH DAMAGE. */ +#include + #if __SIZEOF_POINTER__ == 4 /* diff --git a/libkern/udivdi3.c b/libkern/udivdi3.c index 8e1b60dd..e11e62c6 100644 --- a/libkern/udivdi3.c +++ b/libkern/udivdi3.c @@ -31,6 +31,8 @@ * SUCH DAMAGE. */ +#include + #if __SIZEOF_POINTER__ == 4 /* diff --git a/libkern/umoddi3.c b/libkern/umoddi3.c index 7009257b..b5d46cba 100644 --- a/libkern/umoddi3.c +++ b/libkern/umoddi3.c @@ -31,6 +31,8 @@ * SUCH DAMAGE. */ +#include + #if __SIZEOF_POINTER__ == 4 /*