On Thu, 27 Apr 2023 15:40:10 +0100, Greg Steuck wrote:

> Neither of them seems to have the magic define, unlike the 13
> unobviously chosen places in /usr/include which have:
>
> #ifndef _SIZE_T_DEFINED_
> #define _SIZE_T_DEFINED_
> typedef __size_t      size_t;
> #endif
>
> Should I replicate this block into sys/syslog.h? That fixes the problem
> but clearly one can never tell what's gonna break with system include
> files.

That should be OK but you could also just use __size_t in the
function prototype.  We use __va_list in syslog.h instead of va_list
for a similar reason.

 - todd

Reply via email to