diff -up rp-pppoe/kmode.patch.orig rp-pppoe/kmode.patch --- rp-pppoe/kmode.patch.orig 2013-02-11 14:32:13.000000000 -0700 +++ rp-pppoe/kmode.patch 2013-02-11 14:24:43.000000000 -0700 @@ -0,0 +1,19 @@ +diff -up rp-pppoe-3.11/src/configure.orig rp-pppoe-3.11/src/configure +--- rp-pppoe-3.11/src/configure.orig 2012-08-17 12:31:25.000000000 -0600 ++++ rp-pppoe-3.11/src/configure 2013-02-11 14:23:05.000000000 -0700 +@@ -3679,6 +3679,7 @@ do : + #include + #include + #include ++#include + + " + if test "x$ac_cv_header_linux_if_pppox_h" = x""yes; then : +@@ -4525,6 +4526,7 @@ else + #include + #include + #include ++#include + #include + int main() + { diff -up rp-pppoe/PKGBUILD.orig rp-pppoe/PKGBUILD --- rp-pppoe/PKGBUILD.orig 2013-02-08 16:05:28.000000000 -0700 +++ rp-pppoe/PKGBUILD 2013-02-11 14:27:54.000000000 -0700 @@ -4,7 +4,7 @@ pkgname=rp-pppoe pkgver=3.11 -pkgrel=1 +pkgrel=2 pkgdesc="Roaring Penguin's Point-to-Point Protocol over Ethernet client" arch=('i686' 'x86_64') url="http://www.roaringpenguin.com/pppoe/" @@ -15,14 +15,16 @@ backup=(etc/ppp/pppoe.conf etc/ppp/firew options=('!makeflags') install=rp-pppoe.install source=(http://www.roaringpenguin.com/files/download/rp-pppoe-$pkgver.tar.gz{,.sig} - adsl adsl.service) + adsl adsl.service kmode.patch) md5sums=('13b5900c56bd602df6cc526e5e520722' '8fc724aa146dba52ef7b3fbe5b8784c6' 'adace1ad441aa88dcb3db52fb7f9c97f' - 'af234125f956f3a356ab0d0fcaa9e8a2') + 'af234125f956f3a356ab0d0fcaa9e8a2' + 'd38a903a247d689ff0323d7b6caa1c6b') build() { cd "$srcdir/$pkgname-$pkgver/src" + patch -Np2 -i ../../kmode.patch ./configure --prefix=/usr --enable-plugin make PLUGIN_DIR="/usr/lib/rp-pppoe" all rp-pppoe.so }