Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rofl0r/proxychains-ng.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAleksey Filippov <alekseyf@google.com>2015-02-17 17:27:01 +0300
committerAleksey Filippov <alekseyf@google.com>2015-02-17 17:30:43 +0300
commit4e986caa2a31997d3e053803edee8918edbb726e (patch)
treee605be7f6e6de4b3b0c25544f7d520ce5ce5c8aa /tests
parent8dd08e2cd29b2b0c1174adac4935e256b38c08b7 (diff)
support MSG_FASTOPEN on old kernels
Diffstat (limited to 'tests')
-rw-r--r--tests/test_sendto.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_sendto.c b/tests/test_sendto.c
index 77d2e9c..57b008f 100644
--- a/tests/test_sendto.c
+++ b/tests/test_sendto.c
@@ -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);