summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Protsenko <semen.protsenko@linaro.org>2018-07-26 22:09:21 -0700
committerandroid-build-merger <android-build-merger@google.com>2018-07-26 22:09:21 -0700
commit819f6c1e0dde75f5c0ace93da4630ddb218dd5c6 (patch)
tree2d1057b92fd46598ee89fd13d54e13c61ae80618
parent109240bdddde5d6cbf0d65150363b092d26cff5b (diff)
parent655d7a63cbe930026f891218aeda826d47bddf02 (diff)
downloadppp-819f6c1e0dde75f5c0ace93da4630ddb218dd5c6.tar.gz
pppd: Fix pppol2tp-android.so build am: da34949ce3
am: 655d7a63cb Change-Id: Id284a7b20c4f647bd55b5041352538cf200df6e2
-rw-r--r--pppd/include/net/ppp_defs.h8
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