Re: 01-getnline.diff (was Re: getline & getline_safe)
Derek Robert Price <[email protected]>
| Newsgroups | gmane.comp.lib.gnulib.bugs,gmane.comp.version-control.cvs.bugs |
|---|---|
| Organization | Ximbiot <http://ximbiot.com> |
| Message-ID | <[email protected]> |
Steve McIntyre wrote:
>On Wed, Jul 16, 2003 at 03:56:33PM -0400, Derek Robert Price wrote:
>
>
>>Incidentally, my glibc defines both getdelim & getline to return
>>ssize_t. Is it intentional that the GNULIB versions return int instead?
>>
>>
>
>Actually, that was exactly the cause of the original bug! ssize_t and
>int are equivalent on most 32-bit platforms, but not on 64-bit
>Linux. Thus the definition of getline() clashes and does not match the
>one included from stdio.h...
>
>
But what I checked in still should have fixed things. The offending
prototypes now won't be included unless the functions do not exist on
the system, so the fact that they have different signatures will be
irrelevant.
Derek
--
*8^)
Email: [email protected]
Get CVS support at <http://ximbiot.com>!
--
Old heads as well as young may sometimes be charged with ignorance and
presumption. The natural course of the human mind is certainly from credulity to skepticism.
- Thomas Jefferson to Caspar Wistar, 1807