diff options
Diffstat (limited to 'firmware/include/file.h')
-rw-r--r-- | firmware/include/file.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/firmware/include/file.h b/firmware/include/file.h index 2d5c9b88ab..1a43c6ad1d 100644 --- a/firmware/include/file.h +++ b/firmware/include/file.h | |||
@@ -22,12 +22,15 @@ | |||
22 | #ifndef _FILE_H_ | 22 | #ifndef _FILE_H_ |
23 | #define _FILE_H_ | 23 | #define _FILE_H_ |
24 | 24 | ||
25 | #include <sys/types.h> | ||
26 | #include "_ansi.h" | ||
27 | |||
28 | #undef MAX_PATH /* this avoids problems when building simulator */ | 25 | #undef MAX_PATH /* this avoids problems when building simulator */ |
29 | #define MAX_PATH 260 | 26 | #define MAX_PATH 260 |
30 | 27 | ||
28 | #ifdef __PCTOOL__ | ||
29 | #include <fcntl.h> | ||
30 | #else | ||
31 | #include <sys/types.h> | ||
32 | #include "_ansi.h" | ||
33 | |||
31 | #define MAX_OPEN_FILES 11 | 34 | #define MAX_OPEN_FILES 11 |
32 | 35 | ||
33 | #ifndef SEEK_SET | 36 | #ifndef SEEK_SET |
@@ -97,3 +100,4 @@ extern off_t filesize(int fd); | |||
97 | extern int release_files(int volume); | 100 | extern int release_files(int volume); |
98 | int fdprintf (int fd, const char *fmt, ...) ATTRIBUTE_PRINTF(2, 3); | 101 | int fdprintf (int fd, const char *fmt, ...) ATTRIBUTE_PRINTF(2, 3); |
99 | #endif | 102 | #endif |
103 | #endif | ||