trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iga...@apache.org
Subject git commit: TS-1683: channel_stats doesn't compile under fBSD
Date Tue, 05 Feb 2013 09:16:25 GMT
Updated Branches:
  refs/heads/master 90b3c0a2e -> 54cc854e2


TS-1683: channel_stats doesn't compile under fBSD

we fix it by including the header <inet/in.h> which is where sockaddr_in
is defined on FreeBSD. We only included it, #if the header exists.


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/54cc854e
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/54cc854e
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/54cc854e

Branch: refs/heads/master
Commit: 54cc854e24c34be152b863e957275c7bf0cbb884
Parents: 90b3c0a
Author: Igor Galić <i.galic@brainsware.org>
Authored: Tue Feb 5 10:14:58 2013 +0100
Committer: Igor Galić <i.galic@brainsware.org>
Committed: Tue Feb 5 10:14:58 2013 +0100

----------------------------------------------------------------------
 .../experimental/channel_stats/channel_stats.cc    |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/54cc854e/plugins/experimental/channel_stats/channel_stats.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/channel_stats/channel_stats.cc b/plugins/experimental/channel_stats/channel_stats.cc
index 8c6f233..f401ef1 100644
--- a/plugins/experimental/channel_stats/channel_stats.cc
+++ b/plugins/experimental/channel_stats/channel_stats.cc
@@ -28,6 +28,9 @@
 #include <algorithm>
 #include <sstream>
 #include <arpa/inet.h>
+#if defined(TS_HAVE_NETINET_IN_H)
+#include <inet/in.h>
+#endif
 
 #include <ts/ts.h>
 #if (TS_VERSION_NUMBER < 3003001)


Mime
View raw message