changeset 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 3b3be9f7f452
files dwcompat.h
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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