diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-02-25 21:10:12 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-02-25 21:10:12 -0800 |
commit | bfbd5464eabbebce89da45d7545cfee4b437f5d1 (patch) | |
tree | fa482770bad018e18b7338715436de9cf4bdfbfa | |
parent | 6152d7affa392c8233b527b5800299f0b38246f0 (diff) | |
download | syslinux-bfbd5464eabbebce89da45d7545cfee4b437f5d1.tar.gz |
extlinux: compile hack for old distrossyslinux-3.62-pre16
Some old distros would have <linux/fs.h> poison the namespace with a
non-glibc "struct statfs". Hack around it.
-rw-r--r-- | extlinux/extlinux.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extlinux/extlinux.c b/extlinux/extlinux.c index 101a4abe..0edce5a5 100644 --- a/extlinux/extlinux.c +++ b/extlinux/extlinux.c @@ -40,7 +40,9 @@ typedef uint64_t u64; #include <linux/fd.h> /* Floppy geometry */ #include <linux/hdreg.h> /* Hard disk geometry */ +#define statfs _kernel_statfs /* HACK to deal with broken 2.4 distros */ #include <linux/fs.h> /* FIGETBSZ, FIBMAP */ +#undef statfs #include "ext2_fs.h" #include "../version.h" |