aboutsummaryrefslogtreecommitdiffstats
path: root/package/ppp
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-04-02 02:24:38 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-04-02 02:24:38 +0000
commita9be9d3d5ca3a7cb1d8ac6ec4c76feffe0c3d7f4 (patch)
tree54390045e1f26d9e2ca13aa8472f095b9f79c9c6 /package/ppp
parent9e43700e4e17e8e3b80d3930cd4ec1e7c7189ce5 (diff)
downloadupstream-a9be9d3d5ca3a7cb1d8ac6ec4c76feffe0c3d7f4.tar.gz
upstream-a9be9d3d5ca3a7cb1d8ac6ec4c76feffe0c3d7f4.tar.bz2
upstream-a9be9d3d5ca3a7cb1d8ac6ec4c76feffe0c3d7f4.zip
ppp: fix fallout from the size reduction patch (thx, frogonwheels)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26398 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ppp')
-rw-r--r--package/ppp/patches/400-simplify_kernel_checks.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/package/ppp/patches/400-simplify_kernel_checks.patch b/package/ppp/patches/400-simplify_kernel_checks.patch
index 03591a897c..e82996c5f7 100644
--- a/package/ppp/patches/400-simplify_kernel_checks.patch
+++ b/package/ppp/patches/400-simplify_kernel_checks.patch
@@ -90,3 +90,43 @@
if (sfd < 0)
return 0;
+--- a/pppd/plugins/pppoatm/pppoatm.c
++++ b/pppd/plugins/pppoatm/pppoatm.c
+@@ -210,14 +210,6 @@ static void recv_config_pppoa(int mru,
+
+ void plugin_init(void)
+ {
+-#ifdef linux
+- extern int new_style_driver; /* From sys-linux.c */
+- if (!ppp_available() && !new_style_driver)
+- fatal("Kernel doesn't support ppp_generic - "
+- "needed for PPPoATM");
+-#else
+- fatal("No PPPoATM support on this OS");
+-#endif
+ add_options(pppoa_options);
+ }
+
+--- a/pppd/plugins/rp-pppoe/plugin.c
++++ b/pppd/plugins/rp-pppoe/plugin.c
+@@ -55,9 +55,6 @@ static char const RCSID[] =
+
+ char pppd_version[] = VERSION;
+
+-/* From sys-linux.c in pppd -- MUST FIX THIS! */
+-extern int new_style_driver;
+-
+ char *pppd_pppoe_service = NULL;
+ static char *acName = NULL;
+ static char *existingSession = NULL;
+@@ -312,10 +309,6 @@ PPPoEDevnameHook(char *cmd, char **argv,
+ void
+ plugin_init(void)
+ {
+- if (!ppp_available() && !new_style_driver) {
+- fatal("Linux kernel does not support PPPoE -- are you running 2.4.x?");
+- }
+-
+ add_options(Options);
+ }
+