From 3ad5b03e1afa554220a516f3941b2ef5348fcc19 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 17 May 2013 10:49:10 +0200 Subject: [PATCH 1/1] 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/udp_send.c b/udp_send.c index b1da3167..7930f092 100644 --- a/udp_send.c +++ b/udp_send.c @@ -8,6 +8,7 @@ #include +#include #include #include #include -- 2.39.2