Fix build on FreeBSD
authorAndre Noll <maan@systemlinux.org>
Fri, 17 May 2013 08:49:10 +0000 (10:49 +0200)
committerAndre Noll <maan@systemlinux.org>
Fri, 17 May 2013 08:49:10 +0000 (10:49 +0200)
commit3ad5b03e1afa554220a516f3941b2ef5348fcc19
tree30df2b96b814ac375e625850c8b3303cb3b6d5a5
parent484e75562df55dca31ffcb9e5b05a490b4a3d3a1
Fix build on FreeBSD

Commit 24758c5f (Replace gettimeofday() by clock_gettime()) removed
the inclusion of sys/time.h from several files since this header was
believed to be needed only for gettimeofday(), which was removed in
the same commit.

However, this broke the build on FreeBSD since sys/time.h
also pulled in the declaration of u_short, which is required by
/usr/include/netinet/udp.h. Therefore the compilation of udp_send.c
failed with

/usr/include/netinet/udp.h:42: error: expected specifier-qualifier-list before 'u_short'

This patch changes udp_send.c to include sys/types.h, which provides
the missing declaration.
udp_send.c