++ Bugfixes:
+ 2011-08-24: Simon Goldschmidt
+ * sockets.h: fixed bug #34057 socklen_t should be a typedef
+
2011-08-24: Simon Goldschmidt
* pbuf.c: fixed bug #34112 Odd check in pbuf_alloced_custom (typo)
#endif /* LWIP_IPV6 */
};
-#ifndef socklen_t
-# define socklen_t u32_t
+/* If your port already typedef's socklen_t, define SOCKLEN_T_DEFINED
+ to prevent this code from redefining it. */
+#if !defined(socklen_t) && !defined(SOCKLEN_T_DEFINED)
+typedef u32_t socklen_t;
#endif
/* Socket protocol types (TCP/UDP/RAW) */