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

[Minios-devel] [UNIKRAFT PATCH] lib/ukboot: include uk/essentials.h in weak_main



In case of compiling with newlib enabled, essentials.h is not getting
included. Because of that, compiler does not know what '__weak' means,
and the compilation fails. Let's include essentials.h explicitly.

Signed-off-by: Yuri Volchkov <yuri.volchkov@xxxxxxxxx>
---
 lib/ukboot/weak_main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/ukboot/weak_main.c b/lib/ukboot/weak_main.c
index 697720c..deae3db 100644
--- a/lib/ukboot/weak_main.c
+++ b/lib/ukboot/weak_main.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <errno.h>
+#include <uk/essentials.h>
 
 /* Internal main */
 int __weak main(int argc __unused, char *argv[] __unused)
-- 
2.19.2


_______________________________________________
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®.