diff options
author | Sam Protsenko <semen.protsenko@linaro.org> | 2018-07-26 22:05:22 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-07-26 22:05:22 -0700 |
commit | 655d7a63cbe930026f891218aeda826d47bddf02 (patch) | |
tree | 2d1057b92fd46598ee89fd13d54e13c61ae80618 | |
parent | 0634ee55dc6b60481a1d0a0740bcdd1ca81553f3 (diff) | |
parent | da34949ce33819fa336f311f0fc1c1509925a40a (diff) | |
download | ppp-655d7a63cbe930026f891218aeda826d47bddf02.tar.gz |
pppd: Fix pppol2tp-android.so build
am: da34949ce3
Change-Id: Id535139058bba65d031d709af78d7ece5e8b00f2
-rw-r--r-- | pppd/include/net/ppp_defs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pppd/include/net/ppp_defs.h b/pppd/include/net/ppp_defs.h index a21afdb..9522290 100644 --- a/pppd/include/net/ppp_defs.h +++ b/pppd/include/net/ppp_defs.h @@ -38,6 +38,10 @@ #ifndef _PPP_DEFS_H_ #define _PPP_DEFS_H_ +#if defined(__linux__) +#include <linux/ppp_defs.h> +#endif + #if defined(PPP_ADDRESS) #define USING_UAPI #endif @@ -131,6 +135,10 @@ typedef u_int32_t ext_accm[8]; * What to do with network protocol (NP) packets. */ #if defined(USING_UAPI) + +/* For struct ifreq */ +#include <net/if.h> + /* This stuff isn't in uapi. TODO: is there a newer pppd that doesn't use this? */ #define ifr__name b.ifr_ifrn.ifrn_name #define stats_ptr b.ifr_ifru.ifru_data |