summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Protsenko <semen.protsenko@linaro.org>2018-07-26 22:14:30 -0700
committerandroid-build-merger <android-build-merger@google.com>2018-07-26 22:14:30 -0700
commitcfa7ce50417c57a653e68758d3645341d47ecf89 (patch)
tree2d1057b92fd46598ee89fd13d54e13c61ae80618
parent1f9f7067094561bcd7c7709186c1bb4e7c132c59 (diff)
parent819f6c1e0dde75f5c0ace93da4630ddb218dd5c6 (diff)
downloadppp-cfa7ce50417c57a653e68758d3645341d47ecf89.tar.gz
pppd: Fix pppol2tp-android.so build am: da34949ce3 am: 655d7a63cb
am: 819f6c1e0d Change-Id: I63f0279d105d52b3c9305a7d23b54df44e8e1d46
-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