From: H. Peter Anvin Date: Tue, 26 Feb 2008 05:10:12 +0000 (-0800) Subject: extlinux: compile hack for old distros X-Git-Tag: syslinux-3.62-pre16^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bfbd5464eabbebce89da45d7545cfee4b437f5d1;p=profile%2Fivi%2Fsyslinux.git extlinux: compile hack for old distros Some old distros would have poison the namespace with a non-glibc "struct statfs". Hack around it. --- diff --git a/extlinux/extlinux.c b/extlinux/extlinux.c index 101a4ab..0edce5a 100644 --- a/extlinux/extlinux.c +++ b/extlinux/extlinux.c @@ -40,7 +40,9 @@ typedef uint64_t u64; #include /* Floppy geometry */ #include /* Hard disk geometry */ +#define statfs _kernel_statfs /* HACK to deal with broken 2.4 distros */ #include /* FIGETBSZ, FIBMAP */ +#undef statfs #include "ext2_fs.h" #include "../version.h"