mirror of
				https://github.com/3proxy/3proxy.git
				synced 2025-11-04 07:42:39 +08:00 
			
		
		
		
	fix *nix warnings
This commit is contained in:
		
							parent
							
								
									43a36ec813
								
							
						
					
					
						commit
						9ddc1fb874
					
				@ -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
 | 
			
		||||
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user