fix *nix warnings

This commit is contained in:
Vladimir Dubrovin 2016-02-18 17:01:18 +03:00
parent 43a36ec813
commit 9ddc1fb874
2 changed files with 5 additions and 5 deletions

View File

@ -157,10 +157,10 @@ struct sockfuncs so = {
#else
mypoll,
#endif
send,
sendto,
recv,
recvfrom,
(void *)send,
(void *)sendto,
(void *)recv,
(void *)recvfrom,
shutdown,
#ifdef _WIN32
closesocket

View File

@ -104,7 +104,7 @@
#define PTHREAD_STACK_MIN 32768
#define sockerror strerror
#endif
#define daemonize() daemon(1,1)
#define daemonize() {if(fork())exit(0); else setsid();}
#define SLEEPTIME 1000
#ifndef O_BINARY
#define O_BINARY 0