mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-04 00:53:41 +00:00
Fix a build error
This commit is contained in:
@@ -1044,9 +1044,11 @@ int main(int argc, char **argv)
|
||||
case 'a':
|
||||
user = optarg;
|
||||
break;
|
||||
#ifdef HAVE_SETRLIMIT
|
||||
case 'n':
|
||||
nofile = atoi(optarg);
|
||||
break;
|
||||
#endif
|
||||
case 'u':
|
||||
mode = TCP_AND_UDP;
|
||||
break;
|
||||
|
||||
@@ -675,9 +675,11 @@ int main(int argc, char **argv)
|
||||
case 'a':
|
||||
user = optarg;
|
||||
break;
|
||||
#ifdef HAVE_SETRLIMIT
|
||||
case 'n':
|
||||
nofile = atoi(optarg);
|
||||
break;
|
||||
#endif
|
||||
case 'u':
|
||||
mode = TCP_AND_UDP;
|
||||
break;
|
||||
|
||||
@@ -1346,9 +1346,11 @@ int main(int argc, char **argv)
|
||||
case 'a':
|
||||
user = optarg;
|
||||
break;
|
||||
#ifdef HAVE_SETRLIMIT
|
||||
case 'n':
|
||||
nofile = atoi(optarg);
|
||||
break;
|
||||
#endif
|
||||
case 'u':
|
||||
mode = TCP_AND_UDP;
|
||||
break;
|
||||
|
||||
@@ -747,9 +747,11 @@ int main(int argc, char **argv)
|
||||
case 'a':
|
||||
user = optarg;
|
||||
break;
|
||||
#ifdef HAVE_SETRLIMIT
|
||||
case 'n':
|
||||
nofile = atoi(optarg);
|
||||
break;
|
||||
#endif
|
||||
case 'v':
|
||||
verbose = 1;
|
||||
break;
|
||||
|
||||
+1
-1
@@ -233,7 +233,7 @@ void usage()
|
||||
" [-c <config_file>] The path to config file.\n");
|
||||
#ifdef HAVE_SETRLIMIT
|
||||
printf(
|
||||
" [-n <number>] Max number of open files, only available on Linux.\n");
|
||||
" [-n <number>] Max number of open files.\n");
|
||||
#endif
|
||||
#ifndef MODULE_REDIR
|
||||
printf(
|
||||
|
||||
Reference in New Issue
Block a user