]> git.ozlabs.org Git - ppp.git/commit
pppoe: include netinet/in.h before linux/in.h
authorLubomir Rintel <lkundrak@v3.sk>
Mon, 9 Jan 2017 13:34:23 +0000 (13:34 +0000)
committerLubomir Rintel <lkundrak@v3.sk>
Mon, 9 Jan 2017 16:12:12 +0000 (17:12 +0100)
commit50a2997b256e0e0ef7a46fae133f56f60fce539c
tree1ca4eaa0ab6bebea42e721e6fc5f18939c74b6aa
parent84684243d651f55f6df69d2a6707b52fbbe62bb9
pppoe: include netinet/in.h before linux/in.h

This fixes builds with newer kernels. Basically, <netinet/in.h> needs to be
included before <linux/in.h> otherwise the earlier, unaware of the latter,
tries to redefine symbols and structures. Also, <linux/if_pppox.h> doesn't work
alone anymore, since it pulls the headers in the wrong order, so we better
include <netinet/in.h> early.
pppd/plugins/rp-pppoe/pppoe.h