diff options
-rw-r--r-- | bootloader/ondavx747.c | 1 | ||||
-rw-r--r-- | firmware/target/arm/sandisk/sansa-e200/lcd-e200.c | 1 | ||||
-rw-r--r-- | uisimulator/sdl/lcd-charcells.c | 8 |
3 files changed, 8 insertions, 2 deletions
diff --git a/bootloader/ondavx747.c b/bootloader/ondavx747.c index d60c311bb7..496363c4b1 100644 --- a/bootloader/ondavx747.c +++ b/bootloader/ondavx747.c @@ -24,6 +24,7 @@ #include "backlight.h" #include "font.h" #include "lcd.h" +#include "file.h" #include "usb.h" #include "system.h" #include "button.h" diff --git a/firmware/target/arm/sandisk/sansa-e200/lcd-e200.c b/firmware/target/arm/sandisk/sansa-e200/lcd-e200.c index b88f76f739..f31e0792a9 100644 --- a/firmware/target/arm/sandisk/sansa-e200/lcd-e200.c +++ b/firmware/target/arm/sandisk/sansa-e200/lcd-e200.c @@ -22,6 +22,7 @@ * KIND, either express or implied. * ****************************************************************************/ +#include <sys/types.h> #include <string.h> #include "cpu.h" #include "system.h" diff --git a/uisimulator/sdl/lcd-charcells.c b/uisimulator/sdl/lcd-charcells.c index eb08ea2bef..5a06af53ab 100644 --- a/uisimulator/sdl/lcd-charcells.c +++ b/uisimulator/sdl/lcd-charcells.c @@ -23,8 +23,7 @@ #include "lcd.h" #include "lcd-charcell.h" #include "screendump.h" -#include "general.h" -#include "file.h" +#include "general.h" #include <string.h> #include <unistd.h> #include <fcntl.h> @@ -33,6 +32,11 @@ #include "uisdl.h" #include "lcd-sdl.h" +/* can't include file.h here */ +#ifndef MAX_PATH +#define MAX_PATH 260 +#endif + /* extern functions, needed for screendump() */ extern int sim_creat(const char *name); |