The file socket.c fails to include netinet/tcp.h. Since the TCP_NODELAY option is defined there, it is not compiled into rsync. This applies to osx and linux-2.4.20.