bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error: conflicting types for 'tee'


From: Jim Meyering
Subject: Re: error: conflicting types for 'tee'
Date: Thu, 22 Jun 2006 14:51:24 +0200

Andreas Schwab <address@hidden> 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  <address@hidden>

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]