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:
parent
565341c9fd
commit
dcebfb11bc
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user