]> xenbits.xensource.com Git - unikraft/libs/newlib.git/commit
Use our own <time.h> and <sys/time.h> headers
authorCostin Lupu <costin.lupu@cs.pub.ro>
Sun, 13 Oct 2019 13:37:30 +0000 (16:37 +0300)
committerFelipe Huici <felipe.huici@neclab.eu>
Wed, 16 Oct 2019 08:01:17 +0000 (10:01 +0200)
commit949e761aa86fa13b46e31d45f087aabf4e74ff78
tree283d70fd020d953b5b3914564d39e0c1e8fdbe7b
parent20ab04686a016b311c4e25f059cc9efb960b24df
Use our own <time.h> and <sys/time.h> headers

The uktime internal library provides the headers with the time related
definitions that we need. Given that newlib does not provide guard macros for
most of its definitions (and consequently we get errors because of duplicated
definitions), we decided to skip using its time headers.

In these glue headers we add only those definitions and inclusions that are
needed by newlib. For example, newlib's <sys/time.h> includes <sys/reent.h>, so
we will do the same here. In <time.h> we added the time zone/locale definitions
needed by newlib.

Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
include/sys/time.h [new file with mode: 0644]
include/time.h