summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/statfix.h
blob: a4fac1d061bfe03e989e57234dc47d7113ef3767 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef STATFIX_H
#define STATFIX_H

/* Pull in whatever this particular arch's kernel thinks the kernel version of
 * struct stat should look like.  It turn out that each arch has a different
 * opinion on the subject... */
#define stat kernel_stat
#include <asm/stat.h> 
#undef stat

/* Now pull in libc's version of stat */
#define stat libc_stat
#include <sys/stat.h>
#undef stat

extern void statfix(struct libc_stat *libcstat, struct kernel_stat *kstat);

#endif