projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6152d7a
)
extlinux: compile hack for old distros
syslinux-3.62-pre16
author
H. Peter Anvin
<hpa@zytor.com>
Tue, 26 Feb 2008 05:10:12 +0000
(21:10 -0800)
committer
H. Peter Anvin
<hpa@zytor.com>
Tue, 26 Feb 2008 05:10:12 +0000
(21:10 -0800)
Some old distros would have <linux/fs.h> poison the namespace with a
non-glibc "struct statfs". Hack around it.
extlinux/extlinux.c
patch
|
blob
|
history
diff --git
a/extlinux/extlinux.c
b/extlinux/extlinux.c
index
101a4ab
..
0edce5a
100644
(file)
--- 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"