Skip to content
Snippets Groups Projects
Commit e14c02ce authored by Timo Teräs's avatar Timo Teräs
Browse files

portability: add sys/socket.h which was accidentally forgotten

fixes ecfdd059 "portability, libfetch: add SOCK_NONBLOCK and SOCK_CLOEXEC emulation"
parent afd31ee6
No related branches found
No related tags found
No related merge requests found
#include_next <sys/socket.h>
#ifdef NEED_SOCK_CLOEXEC
#define SOCK_CLOEXEC 02000000
#define SOCK_NONBLOCK 04000
int __portable_socket(int domain, int type, int protocol);
#define socket(...) __portable_socket(__VA_ARGS__)
#endif
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