Hello Frank,
FH> So you might want to try adding an autoconf check for <features.h>, FH> and changing rts/rts.h to something like:
FH> #ifdef HAVE_FEATURES_H FH> #include <features.h> FH> #endif
FH> #if !defined (__UCLIBC__) || defined (__UCLIBC_HAS_LFS__) FH> [ ... _LARGEFILE64_SOURCE etc. defines ... ] FH> #endif
FH> If this works, send me a patch so I can integrate it.
FH> However, I generally don't like system-specific code (as opposed to FH> feature-specific code). So if you find any macros with more general FH> names, I'd strongly prefer them instead.
So am I. Why don't you want just remove these definitions about [ ... _LARGEFILE64_SOURCE etc. defines ... ]? I think it's a problem of C library, when you include any C headers, they automagically includes in turn system includes and C library inlcudes where system's and librariy's configuration definitions lies. Why should you include just these two system defines here and leave all others on their places?
Best regards, Igor Marnat mailto:marny@rambler.ru