I am trying to compile this .c code in windows using MinGW (gcc file.c -o compiled.exe):
/***************************************************/ /* AUTHOR
According to the Unix Specification, socket.h makes available a type, socklen_t, which is an unsigned opaque integral type of length of at least 32 bits. Apparently MingW doesn't include it.
You can define it as:
#include typedef uint32_t socklen_t;