#if defined(WIN32) /* Windows does not have ntohl, so define it here */ #define htonl(x) ntohl(x) int ntohl(int x); #else /* Unix does, so just use it */ #include /* for ntohl() macro */ #endif /* WIN32 */