I'm trying to compile by GCC an old C program that defines and uses a function named
getline, which conflicts with the function of the same name in the GNU C library. How can you compile it? Passing
-ansi -D_XOPEN_SOURCE_EXTENDED to GCC give me strange errors in
/usr/include/strings.h:74:16: error: expected identifier or '(' before '__extension__'
The relevant lines in
extern char *index (__const char *__s, int __c) __THROW __attribute_pure__ __nonnull ((1));