diff --git a/bridge-utils/Pkgfile b/bridge-utils/Pkgfile
index 215c4ae8a..7033480d7 100644
--- a/bridge-utils/Pkgfile
+++ b/bridge-utils/Pkgfile
@@ -10,14 +10,19 @@ source=(http://download.sourceforge.net/bridge/$name-$version.tar.gz)
 
 build() {
   cd $name-$version
+
+  # make compilation fail instead of producing footprint mismatches
+  sed -i 's/ ; done/ || exit 1 &/g' Makefile.in
   autoconf
+
   ./configure --prefix=/usr \
     --mandir=/usr/man
 
+  # fix includes...
   sed -i 's|\(#include <sys/socket.h>\)|\1\n#include <netinet/in.h>|1' \
   libbridge/libbridge.h
-
-  grep include   libbridge/libbridge.h
+  sed -i -e 's|linux/if.h|net/if.h|1' -e '/if_bridge.h/d' libbridge/libbridge.h
+  sed -i '/KERNEL_HEADERS=/d' libbridge/Makefile
 
   make
   make DESTDIR=$PKG install