zephyr/lib/posix
Kumar Gala e96d02984c lib: posix: Fix compile issue with newer newlib
Both SDK 0.10.0-beta2 and the ARM gcc 2018q2 run into a build issue with
newlib and conflict definitions of mode_t type.

First we need to add some ifdef protection if mode_t is already defined
and set _MODE_T_DECLARED if we are the first to define it.

Secondarily, we rename include/posix/sys/types.h to
include/posix/posix_types.h so that we aren't getting a name collusion
with the system sys/types.h and that we can easily and clearily include
it (which we need to do to pull in the info from newlib).

Fixes: #12224

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-02-22 11:55:01 -06:00
..
clock.c lib: posix: Fix compile issue with newer newlib 2019-02-22 11:55:01 -06:00
CMakeLists.txt
fs.c lib: posix: fix build break due to size comparsion 2019-02-01 23:41:09 -05:00
Kconfig posix_lib: Disable support on native posix arch 2019-02-22 11:55:01 -06:00
mqueue.c lib: posix: fix a wrong type in mqueue.c 2019-01-15 17:48:34 -05:00
pthread_barrier.c kernel: Split reschdule & pend into irq/spin lock versions 2019-02-08 14:49:39 -05:00
pthread_common.c
pthread_cond.c kernel: Split reschdule & pend into irq/spin lock versions 2019-02-08 14:49:39 -05:00
pthread_key.c
pthread_mutex.c kernel: Split reschdule & pend into irq/spin lock versions 2019-02-08 14:49:39 -05:00
pthread_rwlock.c lib: posix: Fix compile issue with newer newlib 2019-02-22 11:55:01 -06:00
pthread_sched.c
pthread.c posix: rename priority in sched_param struct 2019-02-19 11:24:45 -05:00
semaphore.c
sleep.c
timer.c lib: posix: Make statements evaluate boolean expressions 2019-01-07 08:52:07 -05:00