2014-08-12 07:12:18

by Mike Frysinger

[permalink] [raw]
Subject: [PATCH [libtirpc]] include stdarg.h when used

The debug.h header uses va_list but doesn't include stdarg.h which
can lead to random build failures.

Signed-off-by: Mike Frysinger <[email protected]>
---
src/debug.h | 2 ++
1 file changed, 2 insertions(+)

diff --git a/src/debug.h b/src/debug.h
index afc8d57..c971ac3 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -21,6 +21,8 @@

#ifndef _DEBUG_H
#define _DEBUG_H
+
+#include <stdarg.h>
#include <syslog.h>

extern int libtirpc_debug_level;
--
2.0.0



2014-08-12 14:52:32

by Steve Dickson

[permalink] [raw]
Subject: Re: [PATCH [libtirpc]] include stdarg.h when used



On 08/12/2014 03:12 AM, Mike Frysinger wrote:
> The debug.h header uses va_list but doesn't include stdarg.h which
> can lead to random build failures.
>
> Signed-off-by: Mike Frysinger <[email protected]>
Committed...

steved.
> ---
> src/debug.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/debug.h b/src/debug.h
> index afc8d57..c971ac3 100644
> --- a/src/debug.h
> +++ b/src/debug.h
> @@ -21,6 +21,8 @@
>
> #ifndef _DEBUG_H
> #define _DEBUG_H
> +
> +#include <stdarg.h>
> #include <syslog.h>
>
> extern int libtirpc_debug_level;
>