diff mbox

[[libtirpc] ] include stdarg.h when used

Message ID 1407827532-31173-1-git-send-email-vapier@gentoo.org (mailing list archive)
State New, archived
Headers show

Commit Message

Mike Frysinger Aug. 12, 2014, 7:12 a.m. UTC
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 <vapier@gentoo.org>
---
 src/debug.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Steve Dickson Aug. 12, 2014, 2:52 p.m. UTC | #1
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 <vapier@gentoo.org>
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;
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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;