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

Re: [Minios-devel] [UNIKRAFT PATCH] plat/xen/xenbus: Add _GNU_SOURCE define when using asprintf


  • To: Bogdan Lascu <lascu.bogdan96@xxxxxxxxx>, minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Mon, 26 Nov 2018 15:46:46 +0200
  • Cc: pogonarumihai@xxxxxxxxx, costin.lupu@xxxxxxxxx
  • Delivery-date: Mon, 26 Nov 2018 13:46:55 +0000
  • Ironport-phdr: 9a23:G3uRLhGR0qb5z5Q3Uwj3WZ1GYnF86YWxBRYc798ds5kLTJ7yosSwAkXT6L1XgUPTWs2DsrQY07qQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmDmwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VC+85Kl3VhDnlCYHNyY48G7JjMxwkLlbqw+lqxBm3oLYfJ2ZOP94c6jAf90VWHBBU95MWSJfDIOyb4gBAeQPMulXrYbyu1QAoACiBQSuHu7j1iNEi3H00KA8zu8vERvG3AslH98WrnnUq871NLsTUeCz0aLGyyjDb+tL2Tzg74XHbhchoeqQXbJxd8rd000vFx7djlWNsoHqIyiV2v4Vs2iG9OVsT/ivi2k+pgx3vzOhxd8sh5HUio8a11zI7yZ0zYYvKdGmVkJ2Y8SoHZVIuy2HOIZ6X9kuTmJotSog1LELt5C2cDIXxJko2RLSbeGMfZKS7RL5TumRJC91hHdieL2imRm/6VOgyujgVsms11ZKszZFnsHMtn8T0xzT7dCKSuV4/ki72DaP0xrf5f1fIUwujarbNoUuzqQqlpoUqUjDHyn2l1vqjKKOa0kp9fWk5/7kb7jmvJOQKZF4hwPkPqkggsC/BP43MgkKX2iV4+S807jj8FXlT7VNlf02jqjZsJbAKcQfu665GxJV350/5BakFTumyMkYkmIdIFJffxKLl5LpNE3WIPDkEfe/hEyhkDNxyPDdIrLhH4/BIWPEkLfuYLly8UhcxQ4ywN1E6JJUD6sOIPP3WkPrqNPYCRo5ORSuw+n7ENV9yp8eWWWXD6+BN6PSvliI5uQ1LOmWeY8VvTf9K/g/6P7vlnI5llodcrOo3ZsTcny3AvNmI0CBa3r2ntgBCXsKvhY5TOHyjV2CUDhTZ3e1X6In/z00FZypDZndSYCpm7GB2Ca7HoZKZmBdEFyNHmnnd4OeV/cLciKSLZwprjtRf7+uR4YnnTWnrwTng+5jJ/Hf52sSsp3v3d4kucXckBgz8Xp/CMHLlymITmd1mXhNSzIo0aRXpU1m1kzFwaV+xftCGo99/fRMByw9LoLdyaReFsjvElbKecyVSVDgRsi+HBk6VZQp3tVIeUErSIbqtQzKwyf/W+xdrLeMHpFht/uEh3U=
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

Thanks for the fix!

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

On 11/24/18 3:05 PM, Bogdan Lascu wrote:
> Compiling xenbus.c and xs.c gives the warning "implicit definition
> of asprintf". Asprintf is not C nor POSIX, so its declaration is
> conditioned by a header define that is activated by defining _GNU_SOURCE
> before including stdio.h.
> 
> Signed-off-by: Bogdan Lascu <lascu.bogdan96@xxxxxxxxx>
> Signed-off-by: Mihai Pogonaru <pogonarumihai@xxxxxxxxx>
> ---
>  plat/xen/xenbus/xenbus.c | 1 +
>  plat/xen/xenbus/xs.c     | 1 +
>  2 files changed, 2 insertions(+)
> 
> diff --git a/plat/xen/xenbus/xenbus.c b/plat/xen/xenbus/xenbus.c
> index f693f80..a2cd65c 100644
> --- a/plat/xen/xenbus/xenbus.c
> +++ b/plat/xen/xenbus/xenbus.c
> @@ -32,6 +32,7 @@
>   * THIS HEADER MAY NOT BE EXTRACTED OR MODIFIED IN ANY WAY.
>   */
>  
> +#define _GNU_SOURCE
>  #include <stdlib.h>
>  #include <stdio.h>
>  #include <inttypes.h>
> diff --git a/plat/xen/xenbus/xs.c b/plat/xen/xenbus/xs.c
> index f81e9a6..d4819ea 100644
> --- a/plat/xen/xenbus/xs.c
> +++ b/plat/xen/xenbus/xs.c
> @@ -39,6 +39,7 @@
>   * Ported from Mini-OS xenbus.c
>   */
>  
> +#define _GNU_SOURCE
>  #include <stdlib.h>
>  #include <stdio.h>
>  #include <string.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®.