|
From: | Derek Robert Price |
Subject: | Re: 01-getnline.diff (was Re: [Bug-gnulib] getline & getline_safe) |
Date: | Wed, 16 Jul 2003 20:36:52 -0400 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 |
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: derek@ximbiot.com 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
[Prev in Thread] | Current Thread | [Next in Thread] |