diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index 6633721d6..d46694c1e 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,8 @@ +2006-04-06 Dimitri Papadopoulos + + * include/iptypes.h (IP_ADAPTER_*): Define parts that depend + on SOCKET_ADDRESS only if winsock2.h has already been included. + 2006-04-06 Dimitri Papadopoulos * include/winuser.h (WM_IME_*): Remove. Defined in imm.h. diff --git a/winsup/w32api/include/iptypes.h b/winsup/w32api/include/iptypes.h index 4c67c4ac5..531dfd3bf 100644 --- a/winsup/w32api/include/iptypes.h +++ b/winsup/w32api/include/iptypes.h @@ -83,7 +83,7 @@ typedef struct _FIXED_INFO { UINT EnableProxy; UINT EnableDns; } FIXED_INFO, *PFIXED_INFO; -#if (_WIN32_WINNT >= 0x0501) +#if (_WIN32_WINNT >= 0x0501) && defined(_WINSOCK2_H) typedef enum { IfOperStatusUp = 1, IfOperStatusDown, diff --git a/winsup/w32api/include/winsock.h b/winsup/w32api/include/winsock.h index d99d84cbc..b595b597c 100644 --- a/winsup/w32api/include/winsock.h +++ b/winsup/w32api/include/winsock.h @@ -15,6 +15,7 @@ #endif #define _GNU_H_WINDOWS32_SOCKETS + #include #ifdef __cplusplus