Skip to content
Snippets Groups Projects
Commit dcebfb11 authored by Gaëtan Harter's avatar Gaëtan Harter
Browse files

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.
parent 565341c9
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,12 @@ ...@@ -28,7 +28,12 @@
extern "C" { extern "C" {
#endif #endif
#ifndef __MACH__
typedef size_t socklen_t; /**< socket address length */ 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 #ifdef __cplusplus
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment