Skip to content

Commit

Permalink
tcp_stats: use relative import (#19771)
Browse files Browse the repository at this point in the history
See
#19535 (comment)

This allows using othe compiler toolchains that are not literally in
/usr/include but are still present. I don't think this should impact
standard clang builds at all.

Signed-off-by: John Howard <howardjohn@google.com>
  • Loading branch information
howardjohn authored Feb 3, 2022
1 parent 651a81f commit cac6264
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/extensions/transport_sockets/tcp_stats/tcp_stats.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include "source/extensions/transport_sockets/tcp_stats/tcp_stats.h"

#include </usr/include/linux/tcp.h>
#include <linux/tcp.h>

#include "envoy/buffer/buffer.h"
#include "envoy/network/connection.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#if defined(__linux__)
#define DO_NOT_INCLUDE_NETINET_TCP_H 1

#include </usr/include/linux/tcp.h>
#include <linux/tcp.h>

#include "envoy/extensions/transport_sockets/tcp_stats/v3/tcp_stats.pb.h"

Expand Down

0 comments on commit cac6264

Please sign in to comment.