include: posix: time: Don't use from-curdir includes ('""' vs '<>')
From-current-dir includes like "sys/types.h" are dangerous - they turn out to cause #include_next directive to not work as expected - instead of including next file (which is in our case should be libc's), it will include the same file once again (apparently because with #include "", a file is found from the current dir, so next search will countinue with -Iinclude/posix, and find sys/types.h there again). Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
This commit is contained in:
parent
7f9127578b
commit
475327f5a3
|
@ -27,8 +27,8 @@ struct timeval {
|
|||
|
||||
#include <kernel.h>
|
||||
#include <errno.h>
|
||||
#include "sys/types.h"
|
||||
#include "signal.h"
|
||||
#include <sys/types.h>
|
||||
#include <signal.h>
|
||||
|
||||
#ifndef CLOCK_REALTIME
|
||||
#define CLOCK_REALTIME 0
|
||||
|
|
Loading…
Reference in a new issue