diff options
Diffstat (limited to 'src/export/mystdlib.h')
-rw-r--r-- | src/export/mystdlib.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/export/mystdlib.h b/src/export/mystdlib.h index 2e9499f..dd08137 100644 --- a/src/export/mystdlib.h +++ b/src/export/mystdlib.h | |||
@@ -1,7 +1,8 @@ | |||
1 | #include <sys/types.h> | 1 | #include <sys/types.h> |
2 | #include <stdint.h> | ||
2 | #include <stdio.h> | 3 | #include <stdio.h> |
3 | 4 | ||
4 | typedef struct { int fh; unsigned char *addr; size_t size; } *MAP; | 5 | typedef struct { int fh; uint8_t *addr; size_t size; } *MAP; |
5 | 6 | ||
6 | /* Mapps a file into memory | 7 | /* Mapps a file into memory |
7 | returns pointer to the mapping struct, | 8 | returns pointer to the mapping struct, |
@@ -28,5 +29,5 @@ void unmap_file ( MAP *pMap ); | |||
28 | 29 | ||
29 | /* Gets file size of open file | 30 | /* Gets file size of open file |
30 | returns != 0 in case of error */ | 31 | returns != 0 in case of error */ |
31 | inline int getfilesize( int fd, unsigned long *size ); | 32 | inline int getfilesize( int fd, size_t *size ); |
32 | 33 | ||