[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] [UNIKRAFT PATCH] lib/ukblkdev: Missing declaration of asprintf for newlibc



Reviewed-by: Costin Lupu <costin.lupu@xxxxxxxxx>

On 10/30/19 8:43 PM, Roxana Nicolescu wrote:
> When building with newlibc, asprintf needs _GNU_SOURCE defined.
> 
> Signed-off-by: Roxana Nicolescu <nicolescu.roxana1996@xxxxxxxxx>
> ---
>  lib/ukblkdev/blkdev.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/lib/ukblkdev/blkdev.c b/lib/ukblkdev/blkdev.c
> index c9537e69..fc5038ba 100644
> --- a/lib/ukblkdev/blkdev.c
> +++ b/lib/ukblkdev/blkdev.c
> @@ -33,6 +33,7 @@
>   * THIS HEADER MAY NOT BE EXTRACTED OR MODIFIED IN ANY WAY.
>   */
>  /* This is derived from uknetdev because of consistency reasons */
> +#define _GNU_SOURCE /* for asprintf() */
>  #include <string.h>
>  #include <stdio.h>
>  #include <inttypes.h>
> 

_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.