diff mbox

[libsepol] Add missing <stdarg.h> include

Message ID 20160701105149.154f5be9@free-electrons.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Thomas Petazzoni July 1, 2016, 8:51 a.m. UTC
Add missing <stdarg.h> include

This is needed to fix the build on uClibc, due to the usage of
va_list.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

Comments

Stephen Smalley July 1, 2016, 5:04 p.m. UTC | #1
On 07/01/2016 04:51 AM, Thomas Petazzoni wrote:
> Add missing <stdarg.h> include
> 
> This is needed to fix the build on uClibc, due to the usage of
> va_list.
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

Thanks, applied.

> 
> Index: b/cil/src/cil_log.h
> ===================================================================
> --- a/cil/src/cil_log.h
> +++ b/cil/src/cil_log.h
> @@ -30,6 +30,7 @@
>  #define CIL_LOG_H_
>  
>  #include <stdlib.h>
> +#include <stdarg.h>
>  #include <cil/cil.h>
>  
>  #define MAX_LOG_SIZE 512
>
diff mbox

Patch

Index: b/cil/src/cil_log.h
===================================================================
--- a/cil/src/cil_log.h
+++ b/cil/src/cil_log.h
@@ -30,6 +30,7 @@ 
 #define CIL_LOG_H_
 
 #include <stdlib.h>
+#include <stdarg.h>
 #include <cil/cil.h>
 
 #define MAX_LOG_SIZE 512