svn commit: r311929 - head/sys/boot/common

Ngie Cooper yaneurabeya at gmail.com
Wed Jan 11 22:33:09 UTC 2017


On Wed, Jan 11, 2017 at 2:32 PM, Ngie Cooper <yaneurabeya at gmail.com> wrote:
> On Wed, Jan 11, 2017 at 2:10 PM, Dimitry Andric <dim at freebsd.org> wrote:
>
> ...
>
>> The line:
>>
>>     extern int errno;
>>
>> expanded to:
>>
>>     extern int (* __error());
>>
>> which is a declaration of an external function pointer called __error
>> (albeit with an empty parameter list).  Since nobody actually refers to
>> this symbol in libstand, there are no later complaints.
>>
>> Interestingly, reloc_elf.c does not use errno at all, so I have no idea
>> why the include was originally added.
>
> This is why:
>
> 95dd728f5ca86 (iedowse  2004-08-28 23:03:05 +0000 221) #else
> 95dd728f5ca86 (iedowse  2004-08-28 23:03:05 +0000 222)  return (EOPNOTSUPP);
> 95dd728f5ca86 (iedowse  2004-08-28 23:03:05 +0000 223) #endif

Oh... sparc64's ok too. Talk about #ifdef soup.
Thanks,
-Ngie


More information about the svn-src-all mailing list