mirror of
				https://github.com/wangyu-/udp2raw.git
				synced 2025-11-04 12:15:35 +08:00 
			
		
		
		
	fix cygwin compile
This commit is contained in:
		@@ -312,9 +312,8 @@ int set_buf_size(int fd,int socket_buf_size,int force_socket_buf)
 | 
			
		||||
{
 | 
			
		||||
	if(force_socket_buf)
 | 
			
		||||
	{
 | 
			
		||||
#if defined(__MINGW32__)
 | 
			
		||||
	assert(0==1);
 | 
			
		||||
#else
 | 
			
		||||
		assert(0==1);
 | 
			
		||||
#if 0
 | 
			
		||||
		if(setsockopt(fd, SOL_SOCKET, SO_SNDBUFFORCE, &socket_buf_size, sizeof(socket_buf_size))<0)
 | 
			
		||||
		{
 | 
			
		||||
			mylog(log_fatal,"SO_SNDBUFFORCE fail  socket_buf_size=%d  errno=%s\n",socket_buf_size,strerror(errno));
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										3
									
								
								common.h
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								common.h
									
									
									
									
									
								
							@@ -37,7 +37,6 @@
 | 
			
		||||
#include <sys/time.h>
 | 
			
		||||
#include <time.h>
 | 
			
		||||
//#include <sys/timerfd.h>
 | 
			
		||||
//#include <netinet/in.h>
 | 
			
		||||
//#include <net/if.h>
 | 
			
		||||
//#include <arpa/inet.h>
 | 
			
		||||
#include <stdarg.h>
 | 
			
		||||
@@ -69,6 +68,8 @@ typedef int socklen_t;
 | 
			
		||||
#include <sys/socket.h>    //for socket ofcourse
 | 
			
		||||
#include <sys/types.h>
 | 
			
		||||
#include <sys/ioctl.h>
 | 
			
		||||
#include <netinet/in.h>
 | 
			
		||||
#include <arpa/inet.h>
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user