Browse Source

fix the building issue

pull/77/head
Max Lv 10 years ago
parent
commit
1f5f08bf1e
1 changed files with 5 additions and 0 deletions
  1. 5
      src/include.h

5
src/include.h

@ -1,6 +1,9 @@
#ifndef _INCLUDE_H
#define _INCLUDE_H
// only enable TCP_FASTOPEN on linux
#if __linux
/* conditional define for TCP_FASTOPEN */
#ifndef TCP_FASTOPEN
#define TCP_FASTOPEN 23
@ -11,6 +14,8 @@
#define MSG_FASTOPEN 0x20000000
#endif
#endif
int udprelay_init(const char *server_host, const char *server_port,
#ifdef UDPRELAY_LOCAL
const char *remote_host, const char *remote_port,

Loading…
Cancel
Save