1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 14:33:52 +01:00

posix/osx: fix type conflict on OSX native

In another header file, `socklen_t` is defined to `__darwin_socklen_t` which is
an `uint32_t` and it conflicts.

Preparation to remove NATIVEINCLUDES.
This commit is contained in:
Gaëtan Harter 2018-03-19 17:40:28 +01:00
parent 565341c9fd
commit dcebfb11bc

View File

@ -28,7 +28,12 @@
extern "C" {
#endif
#ifndef __MACH__
typedef size_t socklen_t; /**< socket address length */
#else
/* Defined for OSX with a different type */
typedef __darwin_socklen_t socklen_t; /**< socket address length */
#endif
#ifdef __cplusplus
}