[bind10-dev] news about Windows port (3/includes)

Francis Dupont fdupont at isc.org
Wed Oct 5 11:19:14 UTC 2011


There are some missing "#include <config.h>", BTW:
 - it is never a bad idea to add one (:-)
 - IMHO it should be always at the first position in the include list

For POSIX integer types like uint32_t, "#include <stdint.h>" can be
required.

Of course unistd.h doesn't exist in WIN32...

The socket includes can be often translated into:

#ifdef _WIN32
#include <ws2tcpip.h>
#else
#include <sys/socket.h>
#include <netinet/in.h>
...
#endif

Francis Dupont <fdupont at isc.org>



More information about the bind10-dev mailing list