# Critical typedef redefinitions

- Thread: https://externals.io/message/14266
- Original archive: https://news-web.php.net/php.internals/14266
- Started by Frank M. Kromann on 2005-01-03T20:39:00+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #14266 — Frank M. Kromann — 2005-01-03T20:39:00+00:00

URL: https://externals.io/message/14266#14266

Hi,

Adding these two lines to main/win95nt.h kills these warnings with vs 6

typedef int socklen_t;
#define HAVE_SOCKLEN_T 1

- Frank


> We only support the MSVC compiler and libc under windows (there are
> plenty of quirks and assumptions made about it for the win32 build).
> 
> Changing that typedef is slightly tricky; I left it as it was because
> there were compilation problems using older versons of MSVC and the
> platform SDK, and this redefinition is benign.
> 
> If you can test you proposed change with MSVC 6, VS.Net and your
> VectorC compiler and make sure that it all still works, then we can
> commit it.
> 
> --Wez.
> 
> On Sun, 02 Jan 2005 11:41:32 +0100, David Strauss <kintaroZ@msn.com>
wrote:
> > […]
chain:
> > […]
WS2tcpip.h
> > […]
defined
> > […]
a
> > […]
see
> > […]
warning
> > […]
