diff options
author | Theodore Ts'o <tytso@mit.edu> | 2004-06-25 00:52:08 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2004-06-25 00:52:08 -0400 |
commit | 919994abc0272f303d5c3388de849a12391baa26 (patch) | |
tree | 01e26137f56731bd7a9324aafbdbb2cad954274b /lib/e2p/fsetflags.c | |
parent | 37a1ee9b9996e975e724dc00f49925d971c999e1 (diff) | |
download | e2fsprogs-919994abc0272f303d5c3388de849a12391baa26.tar.gz |
setflags.c, fsetflags.c: On linux systems, undefine HAVE_CHFLAGS
to deal with lame glibc's that define this function
without actually implementing it. Can you say "attractive
nuisance", boys and girls? I knew you could! (Thanks to
Pavel Troller for reporting this braindamage.)
Diffstat (limited to 'lib/e2p/fsetflags.c')
-rw-r--r-- | lib/e2p/fsetflags.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/e2p/fsetflags.c b/lib/e2p/fsetflags.c index 8b2eed4c..2f1277fd 100644 --- a/lib/e2p/fsetflags.c +++ b/lib/e2p/fsetflags.c @@ -32,6 +32,15 @@ #include "e2p.h" +/* + * Deal with lame glibc's that define this function without actually + * implementing it. Can you say "attractive nuisance", boys and girls? + * I knew you could! + */ +#ifdef __linux__ +#undef HAVE_CHFLAGS +#endif + #ifdef O_LARGEFILE #define OPEN_FLAGS (O_RDONLY|O_NONBLOCK|O_LARGEFILE) #else |