aboutsummaryrefslogtreecommitdiffstats
path: root/extlinux
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-02-25 21:10:12 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-02-25 21:10:12 -0800
commitbfbd5464eabbebce89da45d7545cfee4b437f5d1 (patch)
treefa482770bad018e18b7338715436de9cf4bdfbfa /extlinux
parent6152d7affa392c8233b527b5800299f0b38246f0 (diff)
downloadsyslinux.git-bfbd5464eabbebce89da45d7545cfee4b437f5d1.tar.gz
syslinux.git-bfbd5464eabbebce89da45d7545cfee4b437f5d1.tar.xz
syslinux.git-bfbd5464eabbebce89da45d7545cfee4b437f5d1.zip
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.
Diffstat (limited to 'extlinux')
-rw-r--r--extlinux/extlinux.c2
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"