Message ID | 1459902074-127953-1-git-send-email-nnk@google.com (mailing list archive) |
---|---|
State | Rejected |
Headers | show |
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 --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>