Fixed some problems found while compiling and linking Wine under
Cygwin.
This commit is contained in:
parent
de12a97041
commit
2581db8f6a
|
@ -13873,6 +13873,7 @@ done
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for ac_header in \
|
for ac_header in \
|
||||||
|
@ -13904,6 +13905,7 @@ for ac_header in \
|
||||||
netinet/tcp.h \
|
netinet/tcp.h \
|
||||||
netinet/tcp_fsm.h \
|
netinet/tcp_fsm.h \
|
||||||
openssl/ssl.h \
|
openssl/ssl.h \
|
||||||
|
process.h \
|
||||||
pthread.h \
|
pthread.h \
|
||||||
pty.h \
|
pty.h \
|
||||||
pwd.h \
|
pwd.h \
|
||||||
|
|
|
@ -1020,6 +1020,7 @@ AC_CHECK_HEADERS(\
|
||||||
netinet/tcp.h \
|
netinet/tcp.h \
|
||||||
netinet/tcp_fsm.h \
|
netinet/tcp_fsm.h \
|
||||||
openssl/ssl.h \
|
openssl/ssl.h \
|
||||||
|
process.h \
|
||||||
pthread.h \
|
pthread.h \
|
||||||
pty.h \
|
pty.h \
|
||||||
pwd.h \
|
pwd.h \
|
||||||
|
|
|
@ -4,7 +4,7 @@ TOPOBJDIR = ../..
|
||||||
SRCDIR = @srcdir@
|
SRCDIR = @srcdir@
|
||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
MODULE = gdi32.dll
|
MODULE = gdi32.dll
|
||||||
IMPORTS = advapi32 kernel32
|
IMPORTS = advapi32 kernel32 ntdll
|
||||||
ALTNAMES = gdi.exe dispdib.dll wing.dll
|
ALTNAMES = gdi.exe dispdib.dll wing.dll
|
||||||
EXTRAINCL = @FREETYPEINCL@
|
EXTRAINCL = @FREETYPEINCL@
|
||||||
EXTRALIBS = $(LIBUNICODE) @ICULIBS@
|
EXTRALIBS = $(LIBUNICODE) @ICULIBS@
|
||||||
|
|
|
@ -565,34 +565,48 @@ DWORD getInterfacePhysicalByName(const char *name, PDWORD len, PBYTE addr,
|
||||||
|
|
||||||
switch (ifr.ifr_hwaddr.sa_family)
|
switch (ifr.ifr_hwaddr.sa_family)
|
||||||
{
|
{
|
||||||
|
#ifdef ARPHRD_LOOPBACK
|
||||||
case ARPHRD_LOOPBACK:
|
case ARPHRD_LOOPBACK:
|
||||||
addrLen = 0;
|
addrLen = 0;
|
||||||
*type = MIB_IF_TYPE_LOOPBACK;
|
*type = MIB_IF_TYPE_LOOPBACK;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
#ifdef ARPHRD_ETHER
|
||||||
case ARPHRD_ETHER:
|
case ARPHRD_ETHER:
|
||||||
addrLen = ETH_ALEN;
|
addrLen = ETH_ALEN;
|
||||||
*type = MIB_IF_TYPE_ETHERNET;
|
*type = MIB_IF_TYPE_ETHERNET;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
#ifdef ARPHRD_FDDI
|
||||||
case ARPHRD_FDDI:
|
case ARPHRD_FDDI:
|
||||||
addrLen = ETH_ALEN;
|
addrLen = ETH_ALEN;
|
||||||
*type = MIB_IF_TYPE_FDDI;
|
*type = MIB_IF_TYPE_FDDI;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
#ifdef ARPHRD_IEEE802
|
||||||
case ARPHRD_IEEE802: /* 802.2 Ethernet && Token Ring, guess TR? */
|
case ARPHRD_IEEE802: /* 802.2 Ethernet && Token Ring, guess TR? */
|
||||||
addrLen = ETH_ALEN;
|
addrLen = ETH_ALEN;
|
||||||
*type = MIB_IF_TYPE_TOKENRING;
|
*type = MIB_IF_TYPE_TOKENRING;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
#ifdef ARPHRD_IEEE802_TR
|
||||||
case ARPHRD_IEEE802_TR: /* also Token Ring? */
|
case ARPHRD_IEEE802_TR: /* also Token Ring? */
|
||||||
addrLen = ETH_ALEN;
|
addrLen = ETH_ALEN;
|
||||||
*type = MIB_IF_TYPE_TOKENRING;
|
*type = MIB_IF_TYPE_TOKENRING;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
#ifdef ARPHRD_SLIP
|
||||||
case ARPHRD_SLIP:
|
case ARPHRD_SLIP:
|
||||||
addrLen = 0;
|
addrLen = 0;
|
||||||
*type = MIB_IF_TYPE_SLIP;
|
*type = MIB_IF_TYPE_SLIP;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
#ifdef ARPHRD_PPP
|
||||||
case ARPHRD_PPP:
|
case ARPHRD_PPP:
|
||||||
addrLen = 0;
|
addrLen = 0;
|
||||||
*type = MIB_IF_TYPE_PPP;
|
*type = MIB_IF_TYPE_PPP;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
addrLen = min(MAX_INTERFACE_PHYSADDR, sizeof(ifr.ifr_hwaddr.sa_data));
|
addrLen = min(MAX_INTERFACE_PHYSADDR, sizeof(ifr.ifr_hwaddr.sa_data));
|
||||||
*type = MIB_IF_TYPE_OTHER;
|
*type = MIB_IF_TYPE_OTHER;
|
||||||
|
|
|
@ -686,11 +686,16 @@ PMIB_IPNETTABLE getArpTable(void)
|
||||||
if (ptr && *ptr) {
|
if (ptr && *ptr) {
|
||||||
DWORD flags = strtoul(ptr, &endPtr, 16);
|
DWORD flags = strtoul(ptr, &endPtr, 16);
|
||||||
|
|
||||||
|
#ifdef ATF_COM
|
||||||
if (flags & ATF_COM)
|
if (flags & ATF_COM)
|
||||||
ret->table[ret->dwNumEntries].dwType = MIB_IPNET_TYPE_DYNAMIC;
|
ret->table[ret->dwNumEntries].dwType = MIB_IPNET_TYPE_DYNAMIC;
|
||||||
else if (flags & ATF_PERM)
|
else
|
||||||
|
#endif
|
||||||
|
#ifdef ATF_PERM
|
||||||
|
if (flags & ATF_PERM)
|
||||||
ret->table[ret->dwNumEntries].dwType = MIB_IPNET_TYPE_STATIC;
|
ret->table[ret->dwNumEntries].dwType = MIB_IPNET_TYPE_STATIC;
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
ret->table[ret->dwNumEntries].dwType = MIB_IPNET_TYPE_OTHER;
|
ret->table[ret->dwNumEntries].dwType = MIB_IPNET_TYPE_OTHER;
|
||||||
|
|
||||||
ptr = endPtr;
|
ptr = endPtr;
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
9 stub DllUnregisterServer
|
9 stub DllUnregisterServer
|
||||||
10 stub MatchExactGetIDsOfNames
|
10 stub MatchExactGetIDsOfNames
|
||||||
11 stub RNIGetCompatibleVersion
|
11 stub RNIGetCompatibleVersion
|
||||||
12 stdcall RunHTMLApplication()
|
12 stdcall RunHTMLApplication(long long str long)
|
||||||
13 stub ShowHTMLDialog
|
13 stub ShowHTMLDialog
|
||||||
14 stub ShowModalDialog
|
14 stub ShowModalDialog
|
||||||
15 stub ShowModelessHTMLDialog
|
15 stub ShowModelessHTMLDialog
|
||||||
|
|
|
@ -28,13 +28,13 @@
|
||||||
28 stdcall MsiDatabaseImportW(wstr wstr)
|
28 stdcall MsiDatabaseImportW(wstr wstr)
|
||||||
29 stub MsiDatabaseMergeA
|
29 stub MsiDatabaseMergeA
|
||||||
30 stub MsiDatabaseMergeW
|
30 stub MsiDatabaseMergeW
|
||||||
31 stdcall MsiDatabaseOpenViewA(str ptr)
|
31 stdcall MsiDatabaseOpenViewA(long str ptr)
|
||||||
32 stdcall MsiDatabaseOpenViewW(wstr ptr)
|
32 stdcall MsiDatabaseOpenViewW(long wstr ptr)
|
||||||
33 stdcall MsiDoActionA(long str)
|
33 stdcall MsiDoActionA(long str)
|
||||||
34 stdcall MsiDoActionW(long wstr)
|
34 stdcall MsiDoActionW(long wstr)
|
||||||
35 stub MsiEnableUIPreview
|
35 stub MsiEnableUIPreview
|
||||||
36 stdcall MsiEnumClientsA(long ptr)
|
36 stdcall MsiEnumClientsA(str long ptr)
|
||||||
37 stdcall MsiEnumClientsW(long ptr)
|
37 stdcall MsiEnumClientsW(wstr long ptr)
|
||||||
38 stdcall MsiEnumComponentQualifiersA(str long str ptr str ptr)
|
38 stdcall MsiEnumComponentQualifiersA(str long str ptr str ptr)
|
||||||
39 stdcall MsiEnumComponentQualifiersW(wstr long wstr ptr wstr ptr)
|
39 stdcall MsiEnumComponentQualifiersW(wstr long wstr ptr wstr ptr)
|
||||||
40 stdcall MsiEnumComponentsA(long ptr)
|
40 stdcall MsiEnumComponentsA(long ptr)
|
||||||
|
@ -74,8 +74,8 @@
|
||||||
74 stub MsiGetPropertyW
|
74 stub MsiGetPropertyW
|
||||||
75 stub MsiGetSourcePathA
|
75 stub MsiGetSourcePathA
|
||||||
76 stub MsiGetSourcePathW
|
76 stub MsiGetSourcePathW
|
||||||
77 stdcall MsiGetSummaryInformationA(str long ptr)
|
77 stdcall MsiGetSummaryInformationA(long str long ptr)
|
||||||
78 stdcall MsiGetSummaryInformationW(wstr long ptr)
|
78 stdcall MsiGetSummaryInformationW(long wstr long ptr)
|
||||||
79 stub MsiGetTargetPathA
|
79 stub MsiGetTargetPathA
|
||||||
80 stub MsiGetTargetPathW
|
80 stub MsiGetTargetPathW
|
||||||
81 stub MsiGetUserInfoA
|
81 stub MsiGetUserInfoA
|
||||||
|
|
|
@ -4,7 +4,7 @@ TOPOBJDIR = ../..
|
||||||
SRCDIR = @srcdir@
|
SRCDIR = @srcdir@
|
||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
MODULE = rpcrt4.dll
|
MODULE = rpcrt4.dll
|
||||||
IMPORTS = advapi32 kernel32
|
IMPORTS = advapi32 kernel32 ntdll
|
||||||
EXTRALIBS = $(LIBUUID)
|
EXTRALIBS = $(LIBUUID)
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
|
|
|
@ -4,7 +4,7 @@ TOPOBJDIR = ../..
|
||||||
SRCDIR = @srcdir@
|
SRCDIR = @srcdir@
|
||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
MODULE = wininet.dll
|
MODULE = wininet.dll
|
||||||
IMPORTS = mpr shlwapi shell32 user32 advapi32 kernel32
|
IMPORTS = mpr shlwapi shell32 user32 advapi32 kernel32 ntdll
|
||||||
EXTRALIBS = $(LIBUNICODE)
|
EXTRALIBS = $(LIBUNICODE)
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
|
|
|
@ -36,6 +36,9 @@
|
||||||
# include <openssl/ssl.h>
|
# include <openssl/ssl.h>
|
||||||
#undef DSA
|
#undef DSA
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef HAVE_SYS_SOCKET_H
|
||||||
|
# include <sys/socket.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* used for netconnection.c stuff */
|
/* used for netconnection.c stuff */
|
||||||
typedef struct
|
typedef struct
|
||||||
|
|
|
@ -283,7 +283,9 @@ static const int ws_ip_map[][2] =
|
||||||
MAP_OPTION( IP_ADD_MEMBERSHIP ),
|
MAP_OPTION( IP_ADD_MEMBERSHIP ),
|
||||||
MAP_OPTION( IP_DROP_MEMBERSHIP ),
|
MAP_OPTION( IP_DROP_MEMBERSHIP ),
|
||||||
MAP_OPTION( IP_OPTIONS ),
|
MAP_OPTION( IP_OPTIONS ),
|
||||||
|
#ifdef IP_HDRINCL
|
||||||
MAP_OPTION( IP_HDRINCL ),
|
MAP_OPTION( IP_HDRINCL ),
|
||||||
|
#endif
|
||||||
MAP_OPTION( IP_TOS ),
|
MAP_OPTION( IP_TOS ),
|
||||||
MAP_OPTION( IP_TTL ),
|
MAP_OPTION( IP_TTL ),
|
||||||
{ 0, 0 }
|
{ 0, 0 }
|
||||||
|
@ -2032,8 +2034,10 @@ INT WINAPI WSAIoctl (SOCKET s,
|
||||||
intArray->iiFlags = 0;
|
intArray->iiFlags = 0;
|
||||||
if (ifInfo.ifr_flags & IFF_BROADCAST)
|
if (ifInfo.ifr_flags & IFF_BROADCAST)
|
||||||
intArray->iiFlags |= WS_IFF_BROADCAST;
|
intArray->iiFlags |= WS_IFF_BROADCAST;
|
||||||
|
#ifdef IFF_POINTOPOINT
|
||||||
if (ifInfo.ifr_flags & IFF_POINTOPOINT)
|
if (ifInfo.ifr_flags & IFF_POINTOPOINT)
|
||||||
intArray->iiFlags |= WS_IFF_POINTTOPOINT;
|
intArray->iiFlags |= WS_IFF_POINTTOPOINT;
|
||||||
|
#endif
|
||||||
if (ifInfo.ifr_flags & IFF_LOOPBACK)
|
if (ifInfo.ifr_flags & IFF_LOOPBACK)
|
||||||
intArray->iiFlags |= WS_IFF_LOOPBACK;
|
intArray->iiFlags |= WS_IFF_LOOPBACK;
|
||||||
if (ifInfo.ifr_flags & IFF_UP)
|
if (ifInfo.ifr_flags & IFF_UP)
|
||||||
|
|
|
@ -395,6 +395,9 @@
|
||||||
/* Define to 1 if you have the `pread' function. */
|
/* Define to 1 if you have the `pread' function. */
|
||||||
#undef HAVE_PREAD
|
#undef HAVE_PREAD
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <process.h> header file. */
|
||||||
|
#undef HAVE_PROCESS_H
|
||||||
|
|
||||||
/* Define to 1 if you have the <pthread.h> header file. */
|
/* Define to 1 if you have the <pthread.h> header file. */
|
||||||
#undef HAVE_PTHREAD_H
|
#undef HAVE_PTHREAD_H
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,9 @@
|
||||||
#ifdef HAVE_IO_H
|
#ifdef HAVE_IO_H
|
||||||
# include <io.h>
|
# include <io.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef HAVE_PROCESS_H
|
||||||
|
# include <process.h>
|
||||||
|
#endif
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#ifdef HAVE_UNISTD_H
|
#ifdef HAVE_UNISTD_H
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
|
|
|
@ -11,6 +11,7 @@ EXPORTS
|
||||||
__wine_dll_register
|
__wine_dll_register
|
||||||
__wine_main_argc
|
__wine_main_argc
|
||||||
__wine_main_argv
|
__wine_main_argv
|
||||||
|
__wine_main_environ
|
||||||
__wine_main_wargv
|
__wine_main_wargv
|
||||||
wine_anon_mmap
|
wine_anon_mmap
|
||||||
wine_dbg_add_option
|
wine_dbg_add_option
|
||||||
|
@ -29,6 +30,7 @@ EXPORTS
|
||||||
wine_dll_unload
|
wine_dll_unload
|
||||||
wine_dlopen
|
wine_dlopen
|
||||||
wine_dlsym
|
wine_dlsym
|
||||||
|
wine_get_argv0_path
|
||||||
wine_get_config_dir
|
wine_get_config_dir
|
||||||
wine_get_cs
|
wine_get_cs
|
||||||
wine_get_ds
|
wine_get_ds
|
||||||
|
@ -50,5 +52,8 @@ EXPORTS
|
||||||
wine_ldt_init_locking
|
wine_ldt_init_locking
|
||||||
wine_ldt_realloc_entries
|
wine_ldt_realloc_entries
|
||||||
wine_ldt_set_entry
|
wine_ldt_set_entry
|
||||||
|
wine_pthread_init_process
|
||||||
|
wine_pthread_init_thread
|
||||||
wine_set_fs
|
wine_set_fs
|
||||||
wine_set_gs
|
wine_set_gs
|
||||||
|
wine_switch_to_stack
|
||||||
|
|
Loading…
Reference in New Issue