summaryrefslogtreecommitdiffstats
path: root/include/subdir.am
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-09-21 03:12:56 +0200
committerRenato Westphal <renato@opensourcerouting.org>2017-10-24 13:20:12 +0200
commitba7773964c87019308e65a15b509e9889f7edc49 (patch)
tree866360d3a33d6d15266314e9c8778a278a6a400a /include/subdir.am
parentMerge pull request #1341 from chiragshah6/ospf_vrf_dev (diff)
downloadfrr-ba7773964c87019308e65a15b509e9889f7edc49.tar.xz
frr-ba7773964c87019308e65a15b509e9889f7edc49.zip
build: include our own copies of some linux kernel headers
This is the definitive solution to avoid build issues on old Linux systems, where the system kernel headers might not contain some constants or macros used by FRR (e.g. MPLS_IPTUNNEL_DST, introduced on 2015). This is the same strategy adopted by other projects, like iproute2, libnl, lldpd, strongswan, etc. These header files don't need to be in sync with upstream, they only need to be updated when necessary (e.g. if we want to use a new feature introduced by a recent kernel). Fixes #962 using the solution suggested by David Lamparter. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'include/subdir.am')
-rw-r--r--include/subdir.am9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/subdir.am b/include/subdir.am
new file mode 100644
index 000000000..98bd14800
--- /dev/null
+++ b/include/subdir.am
@@ -0,0 +1,9 @@
+noinst_HEADERS += \
+ include/linux/if_bridge.h \
+ include/linux/if_link.h \
+ include/linux/lwtunnel.h \
+ include/linux/mpls_iptunnel.h \
+ include/linux/neighbour.h \
+ include/linux/rtnetlink.h \
+ include/linux/socket.h \
+ # end