Commit 475327f5 authored by Paul Sokolovsky's avatar Paul Sokolovsky Committed by Anas Nashif
Browse files

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: default avatarPaul Sokolovsky <paul.sokolovsky@linaro.org>
parent 7f912757
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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