support MSG_FASTOPEN on old kernels

This commit is contained in:
Aleksey Filippov
2015-02-17 15:27:01 +01:00
parent 8dd08e2cd2
commit 4e986caa2a
2 changed files with 8 additions and 2 deletions

View File

@ -7,6 +7,10 @@
#include <netinet/in.h>
#include <netdb.h>
#ifndef MSG_FASTOPEN
# define MSG_FASTOPEN 0x20000000
#endif
void error(const char *msg)
{
perror(msg);