Skip to content
Snippets Groups Projects
Commit 4baa00c9 authored by KO Myung-Hun's avatar KO Myung-Hun Committed by Steve Lhomme
Browse files

vlc_fixups: include sys/socket.h on OS/2 LIBCn

LIBCn is a fork of kLIBC, and it has socklen_t in sys/socket.h.
parent 5fd7deb1
No related branches found
No related tags found
No related merge requests found
...@@ -663,6 +663,12 @@ struct addrinfo ...@@ -663,6 +663,12 @@ struct addrinfo
struct addrinfo *ai_next; struct addrinfo *ai_next;
}; };
# ifdef __LIBCN__
/* OS/2 LIBCn has inet_pton(). Because of this, socklen_t is not defined above.
* And OS/2 LIBCn has socklen_t. So include sys/socket.h here for socklen_t. */
# include <sys/socket.h>
# endif
const char *gai_strerror (int); const char *gai_strerror (int);
int getaddrinfo (const char *node, const char *service, int getaddrinfo (const char *node, const char *service,
......
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