Fix compilation on Minix3
commitfcf8d31ebad899549c38f250abb67e4f8ed7edf2
authorJonas Fonseca <fonseca@diku.dk>
Tue, 22 Aug 2006 09:10:14 +0000 (22 11:10 +0200)
committerJonas Fonseca <fonseca@antimatter.localdomain>
Tue, 22 Aug 2006 20:10:51 +0000 (22 22:10 +0200)
treec1ac94ace9b766e1cf2404e178cdfc84cd073660
parent205f346d49bc19b2a6e21c171fe3707d88b79e88
Fix compilation on Minix3

 - Include arpa/inet.h to get hton* ntoh* functions.
 - Use socklen_t instead of int.
 - Try to define PF_INET to AF_INET if it doesn't exist.

Reported-by: Andy Tanenbaum <ast@cs.vu.nl>
src/network/socket.c
src/osdep/generic.h
src/protocol/bittorrent/bencoding.c