changeset 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 650f8b062317
children 60df58233244
files dwcompat.h
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dwcompat.h	Sat Oct 02 19:30:39 2021 +0000
+++ b/dwcompat.h	Sun Oct 03 19:43:57 2021 +0000
@@ -428,9 +428,10 @@
 #define sockpipe(pipes) oldsockpipe(pipes)
 #endif
 
-/* Ok Windows and OS/2 both seem to be missing this */
+/* Ok Windows and OS/2 both seem to be missing these */
 #if defined(__WIN32__) || defined(__OS2__)
 typedef int socklen_t;
+typedef unsigned long in_addr_t;
 #endif
 
 /* If dwstat didn't otherwise get defined */