comparison dwcompat.h @ 2662:60df58233244

OS2: EMX/GCC defines _IN_ADDR_T_DECLARED when it is defined. So fix building with EMX/GCC by avoiding redeclaring in_addr_t.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 03 Oct 2021 20:02:12 +0000
parents 2b37d9b025cf
children b1ff739d0dbc
comparison
equal deleted inserted replaced
2661:2b37d9b025cf 2662:60df58233244
429 #endif 429 #endif
430 430
431 /* Ok Windows and OS/2 both seem to be missing these */ 431 /* Ok Windows and OS/2 both seem to be missing these */
432 #if defined(__WIN32__) || defined(__OS2__) 432 #if defined(__WIN32__) || defined(__OS2__)
433 typedef int socklen_t; 433 typedef int socklen_t;
434 #ifndef _IN_ADDR_T_DECLARED
434 typedef unsigned long in_addr_t; 435 typedef unsigned long in_addr_t;
436 #endif
435 #endif 437 #endif
436 438
437 /* If dwstat didn't otherwise get defined */ 439 /* If dwstat didn't otherwise get defined */
438 #ifndef dwstat 440 #ifndef dwstat
439 #define dwstat stat 441 #define dwstat stat