comparison dwcompat.h @ 2661:2b37d9b025cf

Win/OS2: Add a definition for in_addr_t as unsigned long. Both these platforms seem to be missing this type, which is the return type of the inet_addr() function on Unix and Mac. They just return unsigned long. Mac and Unix define this as a 32-bit unsigned integer.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 03 Oct 2021 19:43:57 +0000
parents 45a6b33a003a
children 60df58233244
comparison
equal deleted inserted replaced
2660:650f8b062317 2661:2b37d9b025cf
426 } 426 }
427 #else 427 #else
428 #define sockpipe(pipes) oldsockpipe(pipes) 428 #define sockpipe(pipes) oldsockpipe(pipes)
429 #endif 429 #endif
430 430
431 /* Ok Windows and OS/2 both seem to be missing this */ 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 typedef unsigned long in_addr_t;
434 #endif 435 #endif
435 436
436 /* If dwstat didn't otherwise get defined */ 437 /* If dwstat didn't otherwise get defined */
437 #ifndef dwstat 438 #ifndef dwstat
438 #define dwstat stat 439 #define dwstat stat