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

Re: [Minios-devel] [UNIKRAFT PATCHv6 36/37] nolibc: Add eerno.h header for time.c



Reviewed-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>

On 14.09.2018 09:57, Wei Chen wrote:
If we don't enable the CONFIG_HAVE_SCHED, we should get the error:
nolibc/time.c:65:3: error: ‘errno’ undeclared (first use in this function)
    errno = EINVAL;
    ^~~~~
This because the uk/sched.h include the error.h implicitly. So we
add error.h to the headers.

Signed-off-by: Wei Chen <wei.chen@xxxxxxx>
---
  lib/nolibc/time.c | 1 +
  1 file changed, 1 insertion(+)

diff --git a/lib/nolibc/time.c b/lib/nolibc/time.c
index 9e3e24e..0467033 100644
--- a/lib/nolibc/time.c
+++ b/lib/nolibc/time.c
@@ -36,6 +36,7 @@
   */
#include <time.h>
+#include <errno.h>
  #include <uk/config.h>
  #if CONFIG_HAVE_SCHED
  #include <uk/sched.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®.