[patch] string.h/strings.h
Ralf Corsepius
ralf.corsepius@rtems.org
Fri Aug 19 14:57:00 GMT 2011
On 08/19/2011 03:59 PM, Eric Blake wrote:
> On 08/19/2011 07:52 AM, Ralf Corsepius wrote:
>> Hi,
>>
>> I would like to apply the patch below.
>>
>> It adds #include <strings.h> to assure these files receive the
>> prototypes of "string/strings family" functions, POSIX has moved, but
>> newlib still hasn't moved.
>>
>> Ralf
>>
>>
>> newlib-strings.diff
>>
>>
>> 2011-08-19 Ralf Corsépius<ralf.corsepius@rtems.org>
>>
>> * libc/string/bcmp.c: Include<strings.h> for "memcmp".
>
> Wrong wording - this file needs two headers: <strings.h> for (obsolete)
> bcmp (missing, which meant we were implementing the function without
> pulling in its declaration), but <string.h> for memcmp (already
> present).
I knew, I would mix them up somewhere ;)
Next iteration of the patch attached below.
Ralf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: newlib-strings.diff
Type: text/x-patch
Size: 2095 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20110819/875b0446/attachment.bin>
More information about the Newlib
mailing list