Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Nov 2018 18:35:33 +0000
From:      Steve O'Hara-Smith <steve@sohara.org>
To:        Brian Wood <woodbrian77@gmail.com>
Cc:        tclug-list <tclug-list@mn-linux.org>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Includes for syslog()
Message-ID:  <20181125183533.a2ba2f6f66e4856f29d3b846@sohara.org>
In-Reply-To: <CABWFOjtO1cuYfsGnKW-=v7Fm=ceNS=T57wQLodA4syrTtYAg%2Bg@mail.gmail.com>
References:  <CABWFOjtO1cuYfsGnKW-=v7Fm=ceNS=T57wQLodA4syrTtYAg%2Bg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 25 Nov 2018 11:40:40 -0600
Brian Wood <woodbrian77@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.

-- 
Steve O'Hara-Smith <steve@sohara.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20181125183533.a2ba2f6f66e4856f29d3b846>