mirror of https://github.com/FreeRDP/FreeRDP
winsock.c Solaris build fixes
This commit is contained in:
parent
e6891b7a78
commit
fe5ce30f92
|
@ -327,6 +327,7 @@ if(NOT IOS)
|
|||
check_include_files(inttypes.h HAVE_INTTYPES_H)
|
||||
check_include_files(sys/modem.h HAVE_SYS_MODEM_H)
|
||||
check_include_files(sys/filio.h HAVE_SYS_FILIO_H)
|
||||
check_include_files(sys/sockio.h HAVE_SYS_SOCKIO_H)
|
||||
check_include_files(sys/strtio.h HAVE_SYS_STRTIO_H)
|
||||
check_include_files(sys/select.h HAVE_SYS_SELECT_H)
|
||||
else()
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#cmakedefine HAVE_SYS_MODEM_H
|
||||
#cmakedefine HAVE_SYS_FILIO_H
|
||||
#cmakedefine HAVE_SYS_SELECT_H
|
||||
#cmakedefine HAVE_SYS_SOCKIO_H
|
||||
#cmakedefine HAVE_SYS_STRTIO_H
|
||||
#cmakedefine HAVE_EVENTFD_H
|
||||
#cmakedefine HAVE_TIMERFD_H
|
||||
|
|
|
@ -29,6 +29,12 @@
|
|||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_FILIO_H
|
||||
#include <sys/filio.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_SOCKIO_H
|
||||
#include <sys/sockio.h>
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <fcntl.h>
|
||||
|
@ -781,7 +787,7 @@ int WSAIoctl(SOCKET s, DWORD dwIoControlCode, LPVOID lpvInBuffer,
|
|||
|
||||
next_ifreq:
|
||||
|
||||
#ifndef __linux__
|
||||
#if !defined(__linux__) && !defined(__sun__)
|
||||
ifreq_len = IFNAMSIZ + ifreq->ifr_addr.sa_len;
|
||||
#else
|
||||
ifreq_len = sizeof(*ifreq);
|
||||
|
|
Loading…
Reference in New Issue