]> xenbits.xensource.com Git - unikraft/libs/newlib.git/commit
Provide our own <timespec.h> and <_timespec.h> headers
authorCostin Lupu <costin.lupu@cs.pub.ro>
Sun, 13 Oct 2019 13:37:31 +0000 (16:37 +0300)
committerFelipe Huici <felipe.huici@neclab.eu>
Wed, 16 Oct 2019 08:01:19 +0000 (10:01 +0200)
commitc19a811f99ac4c6accba399a9ae364852f415baf
treea7b23a481a865a70b6b738343c54cb58502f8005
parent949e761aa86fa13b46e31d45f087aabf4e74ff78
Provide our own <timespec.h> and <_timespec.h> headers

Newlib uses <timespec.h> and <_timespec.h> headers for defining itimerspec and
timespec types, respectively. However, these definitions are not protected with
preprocessing guards in case they were previously defined, which happens for us
because we define these types in uktime internal lib. Therefore the solution is
to skip using newlib's headers and provide our own.

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