diff mbox

cil_mem.c: #define _GNU_SOURCE

Message ID 1459902074-127953-1-git-send-email-nnk@google.com (mailing list archive)
State Rejected
Headers show

Commit Message

Nick Kralevich April 6, 2016, 12:21 a.m. UTC
Fix the following compiler error:

  external/selinux/libsepol/cil/src/cil_mem.c:109:7: warning: implicit
  declaration of function 'vasprintf' is invalid in C99
  [-Wimplicit-function-declaration]
---
 libsepol/cil/src/cil_mem.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Nick Kralevich April 6, 2016, 12:32 a.m. UTC | #1
please disregard this patch.

-- Nick

On Tue, Apr 5, 2016 at 5:21 PM, Nick Kralevich <nnk@google.com> wrote:

> Fix the following compiler error:
>
>   external/selinux/libsepol/cil/src/cil_mem.c:109:7: warning: implicit
>   declaration of function 'vasprintf' is invalid in C99
>   [-Wimplicit-function-declaration]
> ---
>  libsepol/cil/src/cil_mem.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/libsepol/cil/src/cil_mem.c b/libsepol/cil/src/cil_mem.c
> index 12c59be..023e6bd 100644
> --- a/libsepol/cil/src/cil_mem.c
> +++ b/libsepol/cil/src/cil_mem.c
> @@ -27,6 +27,7 @@
>   * either expressed or implied, of Tresys Technology, LLC.
>   */
>
> +#define _GNU_SOURCE
>  #include <stdlib.h>
>  #include <stdio.h>
>  #include <stdarg.h>
> --
> 2.8.0.rc3.226.g39d4020
>
>
diff mbox

Patch

diff --git a/libsepol/cil/src/cil_mem.c b/libsepol/cil/src/cil_mem.c
index 12c59be..023e6bd 100644
--- a/libsepol/cil/src/cil_mem.c
+++ b/libsepol/cil/src/cil_mem.c
@@ -27,6 +27,7 @@ 
  * either expressed or implied, of Tresys Technology, LLC.
  */
 
+#define _GNU_SOURCE
 #include <stdlib.h>
 #include <stdio.h>
 #include <stdarg.h>