mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-24 02:55:40 +08:00
fix *nix warnings
This commit is contained in:
parent
43a36ec813
commit
9ddc1fb874
@ -157,10 +157,10 @@ struct sockfuncs so = {
|
|||||||
#else
|
#else
|
||||||
mypoll,
|
mypoll,
|
||||||
#endif
|
#endif
|
||||||
send,
|
(void *)send,
|
||||||
sendto,
|
(void *)sendto,
|
||||||
recv,
|
(void *)recv,
|
||||||
recvfrom,
|
(void *)recvfrom,
|
||||||
shutdown,
|
shutdown,
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
closesocket
|
closesocket
|
||||||
|
@ -104,7 +104,7 @@
|
|||||||
#define PTHREAD_STACK_MIN 32768
|
#define PTHREAD_STACK_MIN 32768
|
||||||
#define sockerror strerror
|
#define sockerror strerror
|
||||||
#endif
|
#endif
|
||||||
#define daemonize() daemon(1,1)
|
#define daemonize() {if(fork())exit(0); else setsid();}
|
||||||
#define SLEEPTIME 1000
|
#define SLEEPTIME 1000
|
||||||
#ifndef O_BINARY
|
#ifndef O_BINARY
|
||||||
#define O_BINARY 0
|
#define O_BINARY 0
|
||||||
|
Loading…
Reference in New Issue
Block a user