Includes for syslog()
Yuri Pankov
yuripv at yuripv.net
Thu Dec 6 18:20:04 UTC 2018
Steve O'Hara-Smith wrote:
> On Sun, 25 Nov 2018 11:40:40 -0600
> Brian Wood <woodbrian77 at gmail.com> wrote:
>
>> Shalom
>>
>> This page
>> https://www.unix.com/man-page/freebsd/3/openlog/
>>
>> lists
>> #include <syslog.h>
>> #include <stdarg.h>
>>
>> as includes on a FreeBSD system. On Linux there's
>> no mention of stdarg.h. I was wondering if stdarg.h
>> is only needed on FreeBSD if you call vsyslog() and
>
> That's correct, nothing about syslog needs you to include stdarg,
> but you'll need the macros in there if you want to call vsyslog.
Thanks for noticing it, should be fixed in r341639.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20181206/07762ca9/attachment.sig>
More information about the freebsd-questions
mailing list