zephyr/include/posix
Robert Lubos 7fcd32b005 net: sockets: Fix gethostname socket.h/unistd.h clash
This commit fixes an issue observed with SimpleLink sockets with
multiple definitions of `gethostname` function. So far, the definition
within `socket.h` was not visible when offloading was enabled.

As this is no longer the case, and SimpleLink partially uses POSIX
subsystem, builds for this platform resulted in compilation error.

The issue was fixed by moving `gethostname` declaration in unistd.h
inside the `#ifdef CONFIG_POSIX_API` block.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2020-01-31 11:36:02 -05:00
..
arpa include/posix: rearrange for standard use of extern "C" 2019-08-13 18:00:31 +02:00
net posix: Add headers related to BSD Sockets API 2019-08-07 15:02:11 +03:00
netinet posix: Add headers related to BSD Sockets API 2019-08-07 15:02:11 +03:00
sys include: posix: sys/socket.h: Export MSG_* constants. 2019-08-27 15:02:42 +02:00
dirent.h include/posix: rearrange for standard use of extern "C" 2019-08-13 18:00:31 +02:00
mqueue.h posix: mqueue.h: Move O_CREAT and friends to fcntl.h 2019-07-25 13:50:58 -04:00
netdb.h include/posix: rearrange for standard use of extern "C" 2019-08-13 18:00:31 +02:00
poll.h include: posix: Add poll.h header 2019-08-27 15:02:42 +02:00
posix_sched.h
posix_types.h include/posix: rearrange for standard use of extern "C" 2019-08-13 18:00:31 +02:00
pthread.h posix: pthread: pthread_mutex_timedlock should accept absolute deadline 2019-08-27 17:50:48 -04:00
pthread_key.h include/posix: rearrange for standard use of extern "C" 2019-08-13 18:00:31 +02:00
semaphore.h include/posix: rearrange for standard use of extern "C" 2019-08-13 18:00:31 +02:00
signal.h include/posix: rearrange for standard use of extern "C" 2019-08-13 18:00:31 +02:00
time.h include: posix: time.h: Make CLOCK_REALTIME, etc. compatible with Newlib 2019-10-28 13:04:35 +02:00
unistd.h net: sockets: Fix gethostname socket.h/unistd.h clash 2020-01-31 11:36:02 -05:00