mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-11-28 12:34:13 +08:00
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.)
This commit is contained in:
parent
37a1ee9b99
commit
919994abc0
@ -1,3 +1,11 @@
|
||||
2004-06-04 Theodore Ts'o <tytso@mit.edu>
|
||||
|
||||
* 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.)
|
||||
|
||||
2004-02-29 Brian Bergstrand <brian@bergstrand.org>
|
||||
|
||||
* Makefile.in: Use $(BSDLIB_PIC_FLAG) to determine whether to use
|
||||
|
@ -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
|
||||
|
@ -25,6 +25,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
|
||||
|
||||
int setflags (int fd, unsigned long flags)
|
||||
{
|
||||
struct stat buf;
|
||||
|
Loading…
Reference in New Issue
Block a user