mirror of
				https://github.com/libssh2/libssh2.git
				synced 2025-11-03 22:13:11 +03:00 
			
		
		
		
	Replace #if !WIN32 with #if HAVE_SYS_SOCKET_H and HAVE_SYS_IOCTL_H
(AIX needs sys/ioctl.h). Reported by Michael Augustin <maugustin-hi6Y0CQ0nG0@public.gmane.org>.
This commit is contained in:
		@@ -225,7 +225,8 @@ AC_HELP_STRING([--disable-debug],[Disable debug options]),
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Checks for header files.
 | 
					# Checks for header files.
 | 
				
			||||||
# AC_HEADER_STDC
 | 
					# AC_HEADER_STDC
 | 
				
			||||||
AC_CHECK_HEADERS([errno.h fcntl.h stdio.h stdlib.h unistd.h sys/uio.h sys/select.h])
 | 
					AC_CHECK_HEADERS([errno.h fcntl.h stdio.h stdlib.h unistd.h])
 | 
				
			||||||
 | 
					AC_CHECK_HEADERS([sys/uio.h sys/select.h sys/socket.h sys/ioctl.h])
 | 
				
			||||||
AC_CHECK_FUNCS(poll gettimeofday select)
 | 
					AC_CHECK_FUNCS(poll gettimeofday select)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Checks for typedefs, structures, and compiler characteristics.
 | 
					# Checks for typedefs, structures, and compiler characteristics.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -68,8 +68,10 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#include <stdio.h>
 | 
					#include <stdio.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef WIN32
 | 
					#ifdef HAVE_SYS_SOCKET_H
 | 
				
			||||||
# include <sys/socket.h>
 | 
					# include <sys/socket.h>
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					#ifdef HAVE_SYS_IOCTL_H
 | 
				
			||||||
# include <sys/ioctl.h>
 | 
					# include <sys/ioctl.h>
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user