# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1633291332 0 # Node ID 60df582332440ee5b3a5b371ffc02708d58c3a4e # Parent 2b37d9b025cfbe76641f16e89978a2f6eb76c28f OS2: EMX/GCC defines _IN_ADDR_T_DECLARED when it is defined. So fix building with EMX/GCC by avoiding redeclaring in_addr_t. diff -r 2b37d9b025cf -r 60df58233244 dwcompat.h --- a/dwcompat.h Sun Oct 03 19:43:57 2021 +0000 +++ b/dwcompat.h Sun Oct 03 20:02:12 2021 +0000 @@ -431,8 +431,10 @@ /* Ok Windows and OS/2 both seem to be missing these */ #if defined(__WIN32__) || defined(__OS2__) typedef int socklen_t; +#ifndef _IN_ADDR_T_DECLARED typedef unsigned long in_addr_t; #endif +#endif /* If dwstat didn't otherwise get defined */ #ifndef dwstat