Andreas Schwab <[EMAIL PROTECTED]> wrote:
> The next release of GNU libc will have a declaration of a function tee in
> <fcntl.h> (only under _GNU_SOURCE, of course).  This will cause a conflict
> with the use of this name in tee.c:
>
> tee.c:34: error: conflicting types for 'tee'
> /usr/include/bits/fcntl.h:226: error: previous declaration of 'tee' was here
>
> Since coreutils always defines _GNU_SOURCE such types of conflicts can
> happen any time.

Thanks.
I've just fixed this on the trunk and branch.

2006-06-22  Jim Meyering  <[EMAIL PROTECTED]>

        * src/tee.c (tee_files): Rename from tee, to avoid conflict with
        the function in glibc's <fcntl.h>.  Reported by Andreas Schwab.


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to